1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-16 10:11:01 +00:00
uutils-coreutils/fuzz/fuzz_targets/fuzz_parse_time.rs
Sylvestre Ledru ef0b177e18 add more fuzzers
Many thanks to Jemma Nelson
@fwip
2023-03-10 00:03:26 +01:00

12 lines
228 B
Rust

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