Fix OSS-Fuzz decompress_yuv fuzzer MSan failure
This commit is contained in:
@@ -86,7 +86,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||||||
if ((dstBuf = (unsigned char *)tj3Alloc(w * h * tjPixelSize[pf])) == NULL)
|
if ((dstBuf = (unsigned char *)tj3Alloc(w * h * tjPixelSize[pf])) == NULL)
|
||||||
goto bailout;
|
goto bailout;
|
||||||
if ((yuvBuf =
|
if ((yuvBuf =
|
||||||
(unsigned char *)malloc(tj3YUVBufSize(w, 1, h, jpegSubsamp))) == NULL)
|
(unsigned char *)tj3Alloc(tj3YUVBufSize(w, 1, h,
|
||||||
|
jpegSubsamp))) == NULL)
|
||||||
goto bailout;
|
goto bailout;
|
||||||
|
|
||||||
if (tj3DecompressToYUV8(handle, data, size, yuvBuf, 1) == 0 &&
|
if (tj3DecompressToYUV8(handle, data, size, yuvBuf, 1) == 0 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user