Skip to content

Commit

Permalink
Merge pull request #327 from kevinbackhouse/fuzz-other-output-formats
Browse files Browse the repository at this point in the history
Add other output formats to the quadratic fuzzer
  • Loading branch information
kevinbackhouse authored Apr 6, 2023
2 parents ef63acf + 9d9f630 commit c8dcdc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fuzz/fuzz_quadratic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c8dcdc7

Please sign in to comment.