From 74ec04655f81eb57a648846b2a77974428497b86 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Tue, 25 Oct 2022 02:00:56 -0700 Subject: Fix filename of fuzzer task Closes GH-12. --- fuzz/fuzz_targets/markdown.rs | 15 +++++++++++++++ fuzz/fuzz_targets/micromark.rs | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 fuzz/fuzz_targets/markdown.rs delete mode 100644 fuzz/fuzz_targets/micromark.rs (limited to 'fuzz/fuzz_targets') diff --git a/fuzz/fuzz_targets/markdown.rs b/fuzz/fuzz_targets/markdown.rs new file mode 100644 index 0000000..c058637 --- /dev/null +++ b/fuzz/fuzz_targets/markdown.rs @@ -0,0 +1,15 @@ +#![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()); + } +}); diff --git a/fuzz/fuzz_targets/micromark.rs b/fuzz/fuzz_targets/micromark.rs deleted file mode 100644 index c058637..0000000 --- a/fuzz/fuzz_targets/micromark.rs +++ /dev/null @@ -1,15 +0,0 @@ -#![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()); - } -}); -- cgit