]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 20:49:08 +0000 (16:49 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 20:49:08 +0000 (16:49 -0400)
coders/xcf.c

index 562eefd236703013fa3e54945dd9f5df98f2de26..1f621e0432d52cb9b9db3c27ff4a4e22a46e2f7b 100644 (file)
@@ -911,7 +911,9 @@ static MagickBooleanType ReadOneLayer(const ImageInfo *image_info,Image* image,
       break;
     }
   }
-
+  if (EOFBlob(image) != MagickFalse)
+    ThrowBinaryException(CorruptImageError,"UnexpectedEndOfFile",
+      image->filename);
   if (foundPropEnd == MagickFalse)
     return(MagickFalse);
   /* allocate the image for this layer */