From: Cristy Date: Sun, 17 Dec 2017 19:48:03 +0000 (-0500) Subject: Initialize info buffer X-Git-Tag: 7.0.7-16~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6f957f8a2e0731e57ef126e6b9172eb6a6c03fe;p=imagemagick Initialize info buffer --- diff --git a/coders/gif.c b/coders/gif.c index 72179135a..0ee58a1b4 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1158,6 +1158,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowReaderException(ResourceLimitError, "MemoryAllocationFailed"); } + (void) ResetMagickMemory(info,0,255UL*sizeof(*info)); reserved_length=255; for (info_length=0; ; ) {