From 6f6e85fa502b1ac79bfa1fbaca63a013716c236e Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 7 Jul 2019 12:03:46 +0200 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8113 --- coders/xcf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coders/xcf.c b/coders/xcf.c index ea314304c..0ba99f7ff 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -720,7 +720,10 @@ static MagickBooleanType load_level(Image *image,XCFDocInfo *inDocInfo, ThrowBinaryException(CorruptImageError,"UnexpectedEndOfFile", image->filename); if (offset == 0) - return(MagickTrue); + { + (void) SetImageBackgroundColor(image,exception); + return(MagickTrue); + } /* Initialise the reference for the in-memory tile-compression */ -- 2.40.0