Update tests/fuzzers/opj_decompress_fuzzer_JP2.cpp
This commit is contained in:
parent
ab46bdee7a
commit
87b9581e56
|
@ -112,7 +112,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
|
|||
|
||||
OPJ_CODEC_FORMAT eCodecFormat;
|
||||
if (len >= 4 + sizeof(jp2_box_jp) &&
|
||||
memcmp(buf + 4, jp2_box_jp, sizeof(jp2_box_jp)) == 0) {
|
||||
memcmp(buf + 4, jp2_box_jp, sizeof(jp2_box_jp)) == 0) {
|
||||
eCodecFormat = OPJ_CODEC_JP2;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue