Skip to content

Commit

Permalink
Add other output formats to the quadratic fuzzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Apr 6, 2023
1 parent ef63acf commit 9d9f630
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 9d9f630

Please sign in to comment.