From 79fd17295c6205ceda47851e949be41649379038 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 14 Mar 2018 20:31:50 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6878 --- coders/pdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/pdb.c b/coders/pdb.c index 91ffc393a..0e99876d3 100644 --- a/coders/pdb.c +++ b/coders/pdb.c @@ -413,6 +413,9 @@ static Image *ReadPDBImage(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)); packets=(bits_per_pixel*image->columns+7)/8; -- 2.40.0