mirror of
https://github.com/openharmony/third_party_rust_shlex.git
synced 2026-07-01 21:34:03 -04:00
11 lines
238 B
Rust
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() {}
|
|
}
|
|
});
|