We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 387eb53 commit 9fd10cfCopy full SHA for 9fd10cf
1 file changed
coders/gif.c
@@ -1018,6 +1018,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
1018
MagickMax(global_colors,256),3UL*sizeof(*global_colormap));
1019
if (global_colormap == (unsigned char *) NULL)
1020
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
1021
+ (void) ResetMagickMemory(global_colormap,0,3*MagickMax(global_colors,256)*
1022
+ sizeof(*global_colormap));
1023
if (BitSet((int) flag,0x80) != 0)
1024
{
1025
count=ReadBlob(image,(size_t) (3*global_colors),global_colormap);
0 commit comments