From f5c9b051772e902ea0047da1caf2b0886f9b13b5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 10 May 2018 19:54:07 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8205 --- coders/pnm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/pnm.c b/coders/pnm.c index 94b09b6ea..6d9bec6d6 100644 --- a/coders/pnm.c +++ b/coders/pnm.c @@ -230,7 +230,7 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define ThrowPNMException(exception,message) \ { \ - if (comment_info.comment == (char *) NULL) \ + if (comment_info.comment != (char *) NULL) \ comment_info.comment=DestroyString(comment_info.comment); \ ThrowReaderException((exception),(message)); \ } -- 2.40.0