From 416a5756be8188c12fecd529a712fd9a7b78259c Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 8 Apr 2018 20:30:07 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7485 --- coders/pix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/pix.c b/coders/pix.c index e0f43baad..cc2b9eb8d 100644 --- a/coders/pix.c +++ b/coders/pix.c @@ -157,6 +157,9 @@ static Image *ReadPIXImage(const ImageInfo *image_info,ExceptionInfo *exception) if (image->scene >= (image_info->scene+image_info->number_scenes-1)) break; status=SetImageExtent(image,image->columns,image->rows,exception); + if (status == MagickFalse) + return(DestroyImageList(image)); + status=ResetImagePixels(image,exception); if (status == MagickFalse) return(DestroyImageList(image)); /* -- 2.40.0