From: Cristy Date: Sat, 31 Mar 2018 20:49:08 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-29~245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8725a9e72eb92b13538c5c9658ff4b82ccde35ad;p=imagemagick ... --- diff --git a/coders/xcf.c b/coders/xcf.c index 562eefd23..1f621e043 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -911,7 +911,9 @@ static MagickBooleanType ReadOneLayer(const ImageInfo *image_info,Image* image, break; } } - + if (EOFBlob(image) != MagickFalse) + ThrowBinaryException(CorruptImageError,"UnexpectedEndOfFile", + image->filename); if (foundPropEnd == MagickFalse) return(MagickFalse); /* allocate the image for this layer */