aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/fuzz/fuzz_targets/parser.rs
blob: 396c0ecaf31b79226f4befd22838ee2628170ca2 (plain)
1
2
3
4
5
6
7
8
9
#![no_main]
#[macro_use] extern crate libfuzzer_sys;
extern crate ra_syntax;

fuzz_target!(|data: &[u8]| {
    if let Ok(text) = std::str::from_utf8(data) {
        ra_syntax::utils::check_fuzz_invariants(text)
    }
});