rust/crates/syntax/fuzz/fuzz_targets/reparse.rs
2021-05-22 16:53:47 +03:00

12 lines
232 B
Rust

//! Fuzzing for incremental parsing.
#![no_main]
use libfuzzer_sys::fuzz_target;
use syntax::fuzz::CheckReparse;
fuzz_target!(|data: &[u8]| {
if let Some(check) = CheckReparse::from_data(data) {
check.run();
}
});