From: Cristy Date: Thu, 10 May 2018 23:54:07 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8205 X-Git-Tag: 7.0.7-32~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5c9b051772e902ea0047da1caf2b0886f9b13b5;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8205 --- 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)); \ }