From: Cristy Date: Fri, 28 Jun 2019 10:21:48 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8113 X-Git-Tag: 7.0.8-51~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d22d3285e1479fd4712feb09cf5147bf364c364;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8113 --- diff --git a/coders/xcf.c b/coders/xcf.c index 23cfe768c..ea314304c 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -716,6 +716,9 @@ static MagickBooleanType load_level(Image *image,XCFDocInfo *inDocInfo, and we can simply return. */ offset=GetXCFOffset(image,inDocInfo); + if (EOFBlob(image) != MagickFalse) + ThrowBinaryException(CorruptImageError,"UnexpectedEndOfFile", + image->filename); if (offset == 0) return(MagickTrue); /*