Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nwellnhof committed Mar 25, 2024
1 parent 8402848 commit 78295d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuzz/cmark-fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {

case 1: {
FILE *file = fmemopen((void *) markdown, markdown_size, "r");
if (file == NULL) {
perror("fmemopen");
abort();
}
doc = cmark_parse_file(file, options);
fclose(file);
break;
Expand Down

0 comments on commit 78295d6

Please sign in to comment.