From 8725a9e72eb92b13538c5c9658ff4b82ccde35ad Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 31 Mar 2018 16:49:08 -0400 Subject: [PATCH] ... --- coders/xcf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.40.0