Update tests/fuzzers/opj_decompress_fuzzer_JP2.cpp

This commit is contained in:
Even Rouault 2022-05-13 18:04:54 +02:00 committed by GitHub
parent ab46bdee7a
commit 87b9581e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;