add more fuzzers

Many thanks to Jemma Nelson
@fwip
This commit is contained in:
Sylvestre Ledru
2023-03-10 00:03:26 +01:00
parent e553a4a21c
commit ef0b177e18
4 changed files with 54 additions and 0 deletions
+12
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);
}
});