From 5d22d3285e1479fd4712feb09cf5147bf364c364 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 28 Jun 2019 06:21:48 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8113 --- coders/xcf.c | 3 +++ 1 file changed, 3 insertions(+) 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); /* -- 2.40.0