From 2d6db59c7bddee0f052b5ed511bcfd4306badaa9 Mon Sep 17 00:00:00 2001 From: Randy Date: Thu, 11 Jul 2019 15:09:10 +0200 Subject: [PATCH] update fuzzer --- fuzzing/cjson_read_fuzzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzzing/cjson_read_fuzzer.cc b/fuzzing/cjson_read_fuzzer.cc index 57cbd0c..3b76894 100644 --- a/fuzzing/cjson_read_fuzzer.cc +++ b/fuzzing/cjson_read_fuzzer.cc @@ -8,7 +8,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { size_t offset = 4; - if(size < offset) return 0; + if(size <= offset) return 0; if(data[0] != '1' && data[0] != '0') return 0; if(data[1] != '1' && data[1] != '0') return 0; if(data[2] != '1' && data[2] != '0') return 0;