Skip to content
Permalink
Browse files
https://github.com/ImageMagick/ImageMagick/issues/592
  • Loading branch information
Cristy committed Jul 21, 2017
1 parent 387eb53 commit 9fd10cf630832b36a588c1545d8736539b2f1fb5
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1018,6 +1018,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
MagickMax(global_colors,256),3UL*sizeof(*global_colormap));
if (global_colormap == (unsigned char *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
(void) ResetMagickMemory(global_colormap,0,3*MagickMax(global_colors,256)*
sizeof(*global_colormap));
if (BitSet((int) flag,0x80) != 0)
{
count=ReadBlob(image,(size_t) (3*global_colors),global_colormap);

0 comments on commit 9fd10cf

Please sign in to comment.