From c94503e376ab42ec1773665b1c604052831640d3 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 19 Apr 2018 20:50:41 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1100 --- coders/xcf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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! */ -- 2.40.0