]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8113
authorDirk Lemstra <dirk@lemstra.org>
Sun, 7 Jul 2019 10:03:46 +0000 (12:03 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sun, 7 Jul 2019 10:03:46 +0000 (12:03 +0200)
coders/xcf.c

index ea314304cfa9f65bcbd32d87d532403394563cb0..0ba99f7fff05c7d3da5a39d06ed327318719b2a3 100644 (file)
@@ -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
   */