From: Cristy Date: Tue, 6 Mar 2018 12:20:59 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6760 X-Git-Tag: 7.0.7-26~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=990431dbe7688861ad46a7b8d6cb9d173b429cbd;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6760 --- diff --git a/coders/mac.c b/coders/mac.c index 4c3befa06..21271cf6e 100644 --- a/coders/mac.c +++ b/coders/mac.c @@ -154,6 +154,9 @@ static Image *ReadMACImage(const ImageInfo *image_info,ExceptionInfo *exception) return(GetFirstImageInList(image)); } status=SetImageExtent(image,image->columns,image->rows,exception); + if (status == MagickFalse) + return(DestroyImageList(image)); + status=ResetImagePixels(image,exception); if (status == MagickFalse) return(DestroyImageList(image)); /*