From 65f74d9fa0c6ea2e0257a56b4f6b8bda01df1c80 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 3 May 2018 12:49:18 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8118 --- coders/png.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/coders/png.c b/coders/png.c index 55f1734d0..9ed76735b 100644 --- a/coders/png.c +++ b/coders/png.c @@ -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; } -- 2.40.0