update fuzzer

This commit is contained in:
Randy 2019-07-11 15:09:10 +02:00
parent e6bc5d16e6
commit 2d6db59c7b

View File

@ -8,7 +8,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{ {
size_t offset = 4; 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[0] != '1' && data[0] != '0') return 0;
if(data[1] != '1' && data[1] != '0') return 0; if(data[1] != '1' && data[1] != '0') return 0;
if(data[2] != '1' && data[2] != '0') return 0; if(data[2] != '1' && data[2] != '0') return 0;