From b04ab579a37d6645eafccfb594ed7dc64993f9da Mon Sep 17 00:00:00 2001 From: Phil Turnbull Date: Fri, 16 Feb 2018 13:26:26 -0500 Subject: 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. --- test/cmark-fuzz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3