From: Cristy Date: Fri, 16 Mar 2018 23:54:45 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-27~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bab57ae5094923a591aab547533ab1a0c5d61d54;p=imagemagick ... --- diff --git a/coders/gif.c b/coders/gif.c index fcee4a93a..5b0b188c9 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1078,6 +1078,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Read graphics control extension. */ + (void) memset(buffer,0,sizeof(buffer)); while (ReadBlobBlock(image,buffer) != 0) ; meta_image->dispose=(DisposeType) ((buffer[0] >> 2) & 0x07); meta_image->delay=((size_t) buffer[2] << 8) | buffer[1]; @@ -1117,6 +1118,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Read Netscape Loop extension. */ + (void) memset(buffer,0,sizeof(buffer)); loop=MagickFalse; if (ReadBlobBlock(image,buffer) != 0) loop=LocaleNCompare((char *) buffer,"NETSCAPE2.0",11) == 0 ?