orgize/fuzz/fuzz_targets/fuzz_target_1.rs

14 lines
263 B
Rust
Raw Normal View History

2019-01-12 06:51:21 +00:00
#![no_main]
#[macro_use]
extern crate libfuzzer_sys;
extern crate org;
use org::Parser;
#[cfg_attr(rustfmt, rustfmt_skip)]
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
let _ = Parser::new(s).collect::<Vec<_>>();
}
});