aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/fuzz/fuzz_targets/parser.rs
blob: 7bc4ef30d0edae40db456f544ae2f27054d84e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! FIXME: write short doc here

#![no_main]
use libfuzzer_sys::fuzz_target;
use ra_syntax::fuzz::check_parser;

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