From: Cristy Date: Fri, 20 Apr 2018 00:50:41 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1100 X-Git-Tag: 7.0.7-29~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c94503e376ab42ec1773665b1c604052831640d3;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1100 --- diff --git a/coders/xcf.c b/coders/xcf.c index 8248377ba..88fa631af 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -809,8 +809,7 @@ static MagickBooleanType ReadOneLayer(const ImageInfo *image_info,Image* image, if (EOFBlob(image) != MagickFalse) ThrowBinaryException(CorruptImageError,"InsufficientImageDataInFile", image->filename); - if ((outLayer->width < 1) || (outLayer->width > image->columns) || - (outLayer->height < 1) || (outLayer->height > image->rows)) + if ((outLayer->width == 0) || (outLayer->height == 0)) ThrowBinaryException(CorruptImageError,"ImproperImageHeader", image->filename); /* read the layer properties! */