Skip to content

Commit 9fd10cf

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/592
1 parent 387eb53 commit 9fd10cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: coders/gif.c

+2
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
10181018
MagickMax(global_colors,256),3UL*sizeof(*global_colormap));
10191019
if (global_colormap == (unsigned char *) NULL)
10201020
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
1021+
(void) ResetMagickMemory(global_colormap,0,3*MagickMax(global_colors,256)*
1022+
sizeof(*global_colormap));
10211023
if (BitSet((int) flag,0x80) != 0)
10221024
{
10231025
count=ReadBlob(image,(size_t) (3*global_colors),global_colormap);

0 commit comments

Comments
 (0)