aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/fuzz/fuzz_targets/reparse.rs
blob: f865ce8d67abfebb194397702facec0d27464f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! 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();
    }
});