mirror of
https://github.com/uutils/coreutils
synced 2024-11-15 09:27:21 +00:00
fuzz: use parse_size_u64
This commit is contained in:
parent
c24a51403a
commit
6a468e928d
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
|||
#![no_main]
|
||||
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
use uucore::parse_size::parse_size;
|
||||
use uucore::parse_size::parse_size_u64;
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
if let Ok(s) = std::str::from_utf8(data) {
|
||||
_ = parse_size(s);
|
||||
_ = parse_size_u64(s);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue