jotdown/tests/afl/src/parse.rs

10 lines
178 B
Rust
Raw Normal View History

2023-03-12 14:51:38 -04:00
use afl::fuzz;
fn main() {
fuzz!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
jotdown::Parser::new(s).last().unwrap();
}
});
}