From: Cristy Date: Fri, 9 Mar 2018 11:59:39 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6810 X-Git-Tag: 7.0.7-26~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f472c0ae74c136284adbbcfe25f628be2da8a02b;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6810 --- diff --git a/coders/tim.c b/coders/tim.c index 6d1da3220..314ad7d57 100644 --- a/coders/tim.c +++ b/coders/tim.c @@ -239,6 +239,9 @@ static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception) image->columns=width; image->rows=height; status=SetImageExtent(image,image->columns,image->rows,exception); + if (status == MagickFalse) + return(DestroyImageList(image)); + status=ResetImagePixels(image,exception); if (status == MagickFalse) return(DestroyImageList(image)); tim_pixels=(unsigned char *) AcquireQuantumMemory(image_size,