kalker/kalk/fuzz/fuzz_targets/parse.rs

11 lines
293 B
Rust
Raw Normal View History

2021-09-22 00:10:42 +02:00
#![no_main]
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &str| {
let mut ctx = kalk::parser::Context::new().set_timeout(Some(5));
// We don't care if it parses or not, we only care about if it panicked
// while parsing
let _ = kalk::parser::parse(&mut ctx, data);
});