aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz
diff options
context:
space:
mode:
authorLibravatar Christian Murphy <christian.murphy.42@gmail.com>2022-10-07 10:52:20 -0700
committerLibravatar GitHub <noreply@github.com>2022-10-07 19:52:20 +0200
commit1fd94f512834aa7bd70f22a60229ce01edfc754e (patch)
tree8f13d9aa6779d19b6e633b9c84a9678b1082f25a /fuzz
parent2d7b34983699a0d140fb322b494f0572bf157fe1 (diff)
downloadmarkdown-rs-1fd94f512834aa7bd70f22a60229ce01edfc754e.tar.gz
markdown-rs-1fd94f512834aa7bd70f22a60229ce01edfc754e.tar.bz2
markdown-rs-1fd94f512834aa7bd70f22a60229ce01edfc754e.zip
Update fuzzer to support new options format, add mdast fuzzing
Closes GH-9.
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/fuzz_targets/micromark.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/fuzz/fuzz_targets/micromark.rs b/fuzz/fuzz_targets/micromark.rs
index f4d2927..2137e0e 100644
--- a/fuzz/fuzz_targets/micromark.rs
+++ b/fuzz/fuzz_targets/micromark.rs
@@ -7,10 +7,9 @@ fuzz_target!(|data: &[u8]| {
let _ = micromark::micromark(s);
let _ = micromark::micromark_with_options(
s,
- &micromark::Options {
- constructs: micromark::Constructs::gfm(),
- ..micromark::Options::default()
- },
+ &micromark::Options::gfm()
);
+ let _ = micromark::micromark_to_mdast(s, &micromark::ParseOptions::default());
+ let _ = micromark::micromark_to_mdast(s, &micromark::ParseOptions::gfm());
}
});