From: Cristy Date: Tue, 19 Sep 2017 17:53:39 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/767 X-Git-Tag: 7.0.7-4~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2998525a24070f28bc9f1baae530d22fa1774f9;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/767 --- diff --git a/coders/gif.c b/coders/gif.c index 2dbdfc259..866ef2875 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -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);