rust/crates/libsyntax2/fuzz/fuzz_targets/parser.rs
2018-09-08 18:34:41 +03:00

10 lines
223 B
Rust

#![no_main]
#[macro_use] extern crate libfuzzer_sys;
extern crate libsyntax2;
fuzz_target!(|data: &[u8]| {
if let Ok(text) = std::str::from_utf8(data) {
libsyntax2::utils::check_fuzz_invariants(text)
}
});