summaryrefslogtreecommitdiff
path: root/test/cmark-fuzz.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cmark-fuzz.c')
-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;