From: Cristy Date: Tue, 30 Jan 2018 01:00:14 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5814 X-Git-Tag: 7.0.7-23~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e1ac35abc22f939b38d4e4ea21aa807e8ca0e62;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5814 --- diff --git a/coders/pwp.c b/coders/pwp.c index 2d61a3bed..ac3693f53 100644 --- a/coders/pwp.c +++ b/coders/pwp.c @@ -212,9 +212,9 @@ static Image *ReadPWPImage(const ImageInfo *image_info,ExceptionInfo *exception) { (void) RelinquishUniqueFileResource(read_info->filename); read_info=DestroyImageInfo(read_info); - image=DestroyImageList(image); ThrowFileException(exception,FileOpenError,"UnableToWriteFile", image->filename); + image=DestroyImageList(image); return((Image *) NULL); } length=fwrite("SFW94A",1,6,file);