]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8118
authorCristy <urban-warrior@imagemagick.org>
Thu, 3 May 2018 16:49:18 +0000 (12:49 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 3 May 2018 16:49:18 +0000 (12:49 -0400)
coders/png.c

index 55f1734d0f61e863f7def5e653294458edaa84cb..9ed76735bce6a64281fcb69e50d20a267141721a 100644 (file)
@@ -4733,11 +4733,8 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,
             "    Copying JDAT chunk data to color_blob.");
 
         if ((length != 0) && (color_image != (Image *) NULL))
-          {
-            (void) WriteBlob(color_image,length,chunk);
-            chunk=(unsigned char *) RelinquishMagickMemory(chunk);
-          }
-
+          (void) WriteBlob(color_image,length,chunk);
+        chunk=(unsigned char *) RelinquishMagickMemory(chunk);
         continue;
       }