]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8205
authorCristy <urban-warrior@imagemagick.org>
Thu, 10 May 2018 23:54:07 +0000 (19:54 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 10 May 2018 23:54:07 +0000 (19:54 -0400)
coders/pnm.c

index 94b09b6eada613f1cccfc7926b64722dae0cbd95..6d9bec6d6e2193a5b2f94d77e5e202f7cd6cac69 100644 (file)
@@ -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)); \
 }