]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/767
authorCristy <urban-warrior@imagemagick.org>
Tue, 19 Sep 2017 17:53:39 +0000 (13:53 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 19 Sep 2017 17:53:39 +0000 (13:53 -0400)
coders/gif.c

index 2dbdfc2599eda60c365bba939f2f70198e30ef52..866ef2875ab091b06f3afd7c6ff05bfe564d21ae 100644 (file)
@@ -1007,6 +1007,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
   if ((count != 6) || ((LocaleNCompare((char *) buffer,"GIF87",5) != 0) &&
       (LocaleNCompare((char *) buffer,"GIF89",5) != 0)))
     ThrowReaderException(CorruptImageError,"ImproperImageHeader");
+  (void) ResetMagickMemory(buffer,0,sizeof(buffer));
   page.width=ReadBlobLSBShort(image);
   page.height=ReadBlobLSBShort(image);
   flag=(unsigned char) ReadBlobByte(image);