From 9d9f6307057ac59b15888b358445bed12f16ad34 Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Thu, 6 Apr 2023 12:21:32 +0100 Subject: [PATCH] Add other output formats to the quadratic fuzzer. --- fuzz/fuzz_quadratic.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fuzz/fuzz_quadratic.c b/fuzz/fuzz_quadratic.c index cab1b633..523c0f44 100644 --- a/fuzz/fuzz_quadratic.c +++ b/fuzz/fuzz_quadratic.c @@ -75,8 +75,13 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { cmark_parser_feed(parser, markdown, markdown_size); cmark_node *doc = cmark_parser_finish(parser); - + free(cmark_render_html(doc, fuzz_config.options, NULL)); + free(cmark_render_xml(doc, fuzz_config.options)); + free(cmark_render_man(doc, fuzz_config.options, 80)); + free(cmark_render_commonmark(doc, fuzz_config.options, 80)); + free(cmark_render_plaintext(doc, fuzz_config.options, 80)); + free(cmark_render_latex(doc, fuzz_config.options, 80)); cmark_node_free(doc); cmark_parser_free(parser);