opj_decompress_fuzzer: remove checks regarding input dimensions (fixes #1079)
authorEven Rouault <even.rouault@spatialys.com>
Sat, 15 Jun 2019 07:55:16 +0000 (09:55 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Sat, 15 Jun 2019 07:55:16 +0000 (09:55 +0200)
tests/fuzzers/opj_decompress_fuzzer.cpp

index f16e3edc6d04c900c7c45c849d2c4b680f28ab0e..83003a611fb769aad5876c124f0af8c8ef5c9340 100644 (file)
@@ -153,6 +153,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
     OPJ_UINT32 width = psImage->x1 - psImage->x0;
     OPJ_UINT32 height = psImage->y1 - psImage->y0;
 
+#if 0
     // Reject too big images since that will require allocating a lot of
     // memory
     if (width != 0 && psImage->numcomps != 0 &&
@@ -180,6 +181,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
 
         return 0;
     }
+#endif
 
     OPJ_UINT32 width_to_read = width;
     if (width_to_read > 1024) {