Files
third_party_rust_shlex/fuzz/fuzz_targets/fuzz_next.rs
T
2022-02-02 14:59:53 -08:00

11 lines
238 B
Rust

#![no_main]
#[macro_use] extern crate libfuzzer_sys;
use shlex::Shlex;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
let mut sh = Shlex::new(s);
while let Some(word) = sh.next() {}
}
});