From: cristy Date: Tue, 31 Jul 2012 12:50:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5224 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1403e030da4b5796fdf6be1eafe63d3746f791d4;p=imagemagick --- diff --git a/coders/gif.c b/coders/gif.c index ac69f5ecb..e0d4f68f7 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1095,14 +1095,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) if (count == 0) break; header[count]='\0'; - comments=(char *) ResizeQuantumMemory(comments,length+count, - sizeof(*comments)); - if (comments == (char *) NULL) - ThrowReaderException(ResourceLimitError, - "MemoryAllocationFailed"); - (void) CopyMagickMemory(comments+length,header,(size_t) count); + (void) ConcatenateString(&comments,(const char *) header); } - comments[length+count]='\0'; (void) SetImageProperty(image,"comment",comments,exception); comments=DestroyString(comments); break;