TurboJPEG: New flag for limiting prog JPEG scans
This also fixes timeouts reported by OSS-Fuzz.
This commit is contained in:
@@ -100,7 +100,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
goto bailout;
|
||||
|
||||
tjTransform(handle, data, size, NUMXFORMS, dstBufs, dstSizes, transforms,
|
||||
TJFLAG_NOREALLOC);
|
||||
TJFLAG_LIMITSCANS | TJFLAG_NOREALLOC);
|
||||
|
||||
maxBufSize = tjBufSize(width, height, jpegSubsamp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user