rust/crates/syntax/fuzz/fuzz_targets/parser.rs
2020-08-12 18:30:53 +02:00

12 lines
226 B
Rust

//! FIXME: write short doc here
#![no_main]
use libfuzzer_sys::fuzz_target;
use syntax::fuzz::check_parser;
fuzz_target!(|data: &[u8]| {
if let Ok(text) = std::str::from_utf8(data) {
check_parser(text)
}
});