From 1e1ac35abc22f939b38d4e4ea21aa807e8ca0e62 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 29 Jan 2018 20:00:14 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5814 --- coders/pwp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0