2018-09-08 09:55:53 -05:00
|
|
|
#![no_main]
|
2019-03-21 12:05:12 -05:00
|
|
|
use libfuzzer_sys::fuzz_target;
|
|
|
|
use ra_syntax::fuzz::check_parser;
|
2018-09-08 09:55:53 -05:00
|
|
|
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
|
|
if let Ok(text) = std::str::from_utf8(data) {
|
2019-03-21 12:05:12 -05:00
|
|
|
check_parser(text)
|
2018-09-08 09:55:53 -05:00
|
|
|
}
|
|
|
|
});
|