1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

add more fuzzers

Many thanks to Jemma Nelson
@fwip
This commit is contained in:
Sylvestre Ledru 2023-03-07 23:24:13 +01:00
parent e553a4a21c
commit ef0b177e18
4 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,12 @@
// spell-checker:ignore libfuzzer
#![no_main]
use libfuzzer_sys::fuzz_target;
use uucore::parse_time;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
_ = parse_time::from_str(s);
}
});