Permalink
Browse files

Reset memory for RLE decoder (patch provided by scarybeasts)

  • Loading branch information...
Cristy
Cristy committed Mar 9, 2017
1 parent 0375c73 commit 1c358ffe0049f768dd49a8a889c1cbf99ac9849b
Showing with 1 addition and 0 deletions.
  1. +1 −0 coders/rle.c
View
@@ -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

0 comments on commit 1c358ff

Please sign in to comment.