From 1c358ffe0049f768dd49a8a889c1cbf99ac9849b Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 9 Mar 2017 07:27:42 -0500 Subject: [PATCH] Reset memory for RLE decoder (patch provided by scarybeasts) --- coders/rle.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.40.0