mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
add more fuzzers
Many thanks to Jemma Nelson @fwip
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user