1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-14 17:21:04 +00:00
uutils-coreutils/fuzz/fuzz_targets/fuzz_parse_time.rs
2023-03-10 00:03:26 +01:00

10 lines
193 B
Rust

#![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);
}
});