jotdown/tests/afl/src/gen.rs
2023-02-10 09:46:18 +01:00

13 lines
303 B
Rust

use afl::fuzz;
use jotdown::Render;
fn main() {
fuzz!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
let p = jotdown::Parser::new(s);
let mut output = String::new();
jotdown::html::Renderer.push(p, &mut output).unwrap();
}
});
}