From 60cb93d03a9fec83087f803fab877293f1ca12fd Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 3 Mar 2018 09:51:00 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6687 --- coders/viff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/viff.c b/coders/viff.c index 93854fad7..1666df069 100644 --- a/coders/viff.c +++ b/coders/viff.c @@ -519,6 +519,8 @@ static Image *ReadVIFFImage(const ImageInfo *image_info, number_pixels,max_packets),bytes_per_pixel*sizeof(*pixels)); if (pixels == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); + (void) ResetMagickMemory(pixels,0,MagickMax(number_pixels,max_packets)* + bytes_per_pixel*sizeof(*pixels)); count=ReadBlob(image,bytes_per_pixel*max_packets,pixels); lsb_first=1; if (*(char *) &lsb_first && -- 2.40.0