From 2cf74b529c34f2e5915c946e2f4a06f4c292f4c8 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 6 Mar 2018 07:17:26 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6759 --- coders/pcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/pcd.c b/coders/pcd.c index 4c304e29f..5707d3e44 100644 --- a/coders/pcd.c +++ b/coders/pcd.c @@ -589,6 +589,9 @@ static Image *ReadPCDImage(const ImageInfo *image_info,ExceptionInfo *exception) image->rows<<=1; } 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