From: Cristy Date: Thu, 9 Mar 2017 12:27:42 +0000 (-0500) Subject: Reset memory for RLE decoder (patch provided by scarybeasts) X-Git-Tag: 7.0.5-2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c358ffe0049f768dd49a8a889c1cbf99ac9849b;p=imagemagick Reset memory for RLE decoder (patch provided by scarybeasts) --- diff --git a/coders/rle.c b/coders/rle.c index 6e27f41f1..2318901ec 100644 --- a/coders/rle.c +++ b/coders/rle.c @@ -328,6 +328,7 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) pixel_info_length=image->columns*image->rows* MagickMax(number_planes_filled,4); pixels=(unsigned char *) GetVirtualMemoryBlob(pixel_info); + (void) ResetMagickMemory(pixels,0,pixel_info_length); if ((flags & 0x01) && !(flags & 0x02)) { ssize_t