1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00
uutils-coreutils/fuzz/fuzz_targets/fuzz_parse_glob.rs
Nicolas Boichat 6243dd5494 uucore: Move parser to a feature
This will eventually be needed as we'll want parse_time to
call into num_parser, which was previously contained in format
feature.
2025-04-04 15:25:06 +02:00

10 lines
201 B
Rust

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