Skip to content

Commit 1c358ff

Browse files
author
Cristy
committed
Reset memory for RLE decoder (patch provided by scarybeasts)
1 parent 0375c73 commit 1c358ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: coders/rle.c

+1
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception)
328328
pixel_info_length=image->columns*image->rows*
329329
MagickMax(number_planes_filled,4);
330330
pixels=(unsigned char *) GetVirtualMemoryBlob(pixel_info);
331+
(void) ResetMagickMemory(pixels,0,pixel_info_length);
331332
if ((flags & 0x01) && !(flags & 0x02))
332333
{
333334
ssize_t

0 commit comments

Comments
 (0)