Skip to content

Commit

Permalink
Reset memory for RLE decoder (patch provided by scarybeasts)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 9, 2017
1 parent 0375c73 commit 1c358ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coders/rle.c
Expand Up @@ -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
Expand Down

0 comments on commit 1c358ff

Please sign in to comment.