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

12 lines
227 B
Rust

// spell-checker:ignore libfuzzer
#![no_main]
use libfuzzer_sys::fuzz_target;
use uucore::parse_glob;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
_ = parse_glob::from_str(s)
}
});