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:
parent
e553a4a21c
commit
ef0b177e18
4 changed files with 54 additions and 0 deletions
12
fuzz/fuzz_targets/fuzz_parse_time.rs
Normal file
12
fuzz/fuzz_targets/fuzz_parse_time.rs
Normal 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);
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue