fuzz: use parse_size_u64

This commit is contained in:
Zhuoxun Yang 2023-10-29 18:54:40 +08:00
parent c24a51403a
commit 6a468e928d

View file

@ -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);
}
});