projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed300af
)
https://github.com/ImageMagick/ImageMagick/issues/767
author
Cristy
<urban-warrior@imagemagick.org>
Tue, 19 Sep 2017 17:53:39 +0000
(13:53 -0400)
committer
Cristy
<urban-warrior@imagemagick.org>
Tue, 19 Sep 2017 17:53:39 +0000
(13:53 -0400)
coders/gif.c
patch
|
blob
|
history
diff --git
a/coders/gif.c
b/coders/gif.c
index 2dbdfc2599eda60c365bba939f2f70198e30ef52..866ef2875ab091b06f3afd7c6ff05bfe564d21ae 100644
(file)
--- 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);