]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11641
authorCristy <urban-warrior@imagemagick.org>
Sat, 1 Dec 2018 17:22:53 +0000 (12:22 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 1 Dec 2018 17:22:53 +0000 (12:22 -0500)
coders/xcf.c

index f6197a07cd5de708898837357633e9fe821a4ae9..27cff865a4b49da2bf3e93e98a0afbd34de75c40 100644 (file)
@@ -1202,6 +1202,8 @@ static Image *ReadXCFImage(const ImageInfo *image_info,ExceptionInfo *exception)
   status=SetImageExtent(image,image->columns,image->rows,exception);
   if (status == MagickFalse)
     return(DestroyImageList(image));
+  if (status != MagickFalse)
+    status=ResetImagePixels(image,exception);
   if (image_type == GIMP_INDEXED)
     ThrowReaderException(CoderError,"ColormapTypeNotSupported");
   if (image_type == GIMP_RGB)
@@ -1409,8 +1411,8 @@ static Image *ReadXCFImage(const ImageInfo *image_info,ExceptionInfo *exception)
       XCFLayerInfo
         *layer_info;
 
-      /* 
-        the read pointer
+      /*
+        The read pointer.
       */
       do
       {