]> granicus.if.org Git - imagemagick/commitdiff
Reset memory for RLE decoder (patch provided by scarybeasts)
authorCristy <urban-warrior@imagemagick.org>
Thu, 9 Mar 2017 12:27:42 +0000 (07:27 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 9 Mar 2017 12:27:42 +0000 (07:27 -0500)
coders/rle.c

index 6e27f41f15d1a1a1e2487d47a8aa51cfbd8c3161..2318901ec4945da136b7afb6289206a42798ca18 100644 (file)
@@ -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