rust/crates/ra_syntax/fuzz/fuzz_targets/parser.rs

10 lines
221 B
Rust
Raw Normal View History

#![no_main]
#[macro_use] extern crate libfuzzer_sys;
2018-09-16 11:54:24 +02:00
extern crate ra_syntax;
fuzz_target!(|data: &[u8]| {
if let Ok(text) = std::str::from_utf8(data) {
2018-09-16 11:54:24 +02:00
ra_syntax::utils::check_fuzz_invariants(text)
}
});