blob: 2137e0e75d5883fcd791d40781b318acb93d9236 (
plain) (
tree)
|
|
#![no_main]
use libfuzzer_sys::fuzz_target;
extern crate micromark;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
let _ = micromark::micromark(s);
let _ = micromark::micromark_with_options(
s,
µmark::Options::gfm()
);
let _ = micromark::micromark_to_mdast(s, µmark::ParseOptions::default());
let _ = micromark::micromark_to_mdast(s, µmark::ParseOptions::gfm());
}
});
|