blob: c0586377868d99d1191cc9e14dd22f4182b26e11 (
plain) (
tree)
|
|
#![no_main]
use libfuzzer_sys::fuzz_target;
extern crate markdown;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
let _ = markdown::to_html(s);
let _ = markdown::to_html_with_options(
s,
&markdown::Options::gfm()
);
let _ = markdown::to_mdast(s, &markdown::ParseOptions::default());
let _ = markdown::to_mdast(s, &markdown::ParseOptions::gfm());
}
});
|