From: Dirk Lemstra Date: Mon, 19 Dec 2016 13:46:45 +0000 (+0100) Subject: Removed code that sets the columns to zero when a PNG image is corrupt. X-Git-Tag: 7.0.4-1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=356cd3461bcd48d27a3b2c89c74802b3c4caec7a;p=imagemagick Removed code that sets the columns to zero when a PNG image is corrupt. --- diff --git a/coders/png.c b/coders/png.c index 4c6f80ae5..bc3ab76e2 100644 --- a/coders/png.c +++ b/coders/png.c @@ -2179,16 +2179,6 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, (void) LogMagickEvent(CoderEvent,GetMagickModule(), " exit ReadOnePNGImage() with error."); - if (image != (Image *) NULL) - { - const char - *option; - - option=GetImageOption(image_info,"png:preserve-corrupt-image"); - if (IsStringTrue(option) == MagickFalse) - image->columns=0; - } - return(GetFirstImageInList(image)); }