diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-06-15 09:55:16 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-06-15 09:55:16 +0200 |
| commit | 8db9d25dcf360528fd1e094e4f9274c0635e90cc (patch) | |
| tree | ca2aa38564c43d7e99e320773a4f81d6cfaced47 | |
| parent | f4d65783593fd0490e0fdb9f323f2d5aff81a21d (diff) | |
opj_decompress_fuzzer: remove checks regarding input dimensions (fixes #1079)
| -rw-r--r-- | tests/fuzzers/opj_decompress_fuzzer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fuzzers/opj_decompress_fuzzer.cpp b/tests/fuzzers/opj_decompress_fuzzer.cpp index f16e3edc..83003a61 100644 --- a/tests/fuzzers/opj_decompress_fuzzer.cpp +++ b/tests/fuzzers/opj_decompress_fuzzer.cpp @@ -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) { |
