Skip to content

Commit b04ab57

Browse files
Don't discard empty fuzz test-cases
We currently discard fuzz test-cases that are empty but empty inputs are valid markdown. This improves the fuzzing coverage slightly.
1 parent e489ba4 commit b04ab57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cmark-fuzz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
66
int options = 0;
7-
if (size > sizeof(options)) {
7+
if (size >= sizeof(options)) {
88
/* First 4 bytes of input are treated as options */
99
int options = *(const int *)data;
1010

0 commit comments

Comments
 (0)