2021-05-22 08:53:47 -05:00
|
|
|
//! Fuzzing for incremental parsing.
|
2019-09-30 03:58:53 -05:00
|
|
|
|
2019-03-21 12:06:48 -05:00
|
|
|
#![no_main]
|
|
|
|
use libfuzzer_sys::fuzz_target;
|
2020-08-12 11:26:51 -05:00
|
|
|
use syntax::fuzz::CheckReparse;
|
2019-03-21 12:06:48 -05:00
|
|
|
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
|
|
if let Some(check) = CheckReparse::from_data(data) {
|
|
|
|
check.run();
|
|
|
|
}
|
|
|
|
});
|