summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhil Turnbull <philipturnbull@github.com>2018-02-16 13:26:26 -0500
committerPhil Turnbull <philipturnbull@github.com>2018-02-20 14:31:14 -0500
commitb04ab579a37d6645eafccfb594ed7dc64993f9da (patch)
treedf795d8a0cae4ca8b253ee5f9d5571b15c491887 /test
parente489ba4ccb92af53ea823223481005384fad5e14 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/cmark-fuzz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmark-fuzz.c b/test/cmark-fuzz.c
index f09db52..f4f082a 100644
--- a/test/cmark-fuzz.c
+++ b/test/cmark-fuzz.c
@@ -4,7 +4,7 @@
int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
int options = 0;
- if (size > sizeof(options)) {
+ if (size >= sizeof(options)) {
/* First 4 bytes of input are treated as options */
int options = *(const int *)data;