From: Dirk Lemstra Date: Sun, 7 Jul 2019 10:03:46 +0000 (+0200) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8113 X-Git-Tag: 7.0.8-54~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f6e85fa502b1ac79bfa1fbaca63a013716c236e;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8113 --- 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 */