]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 10 Feb 2018 20:30:44 +0000 (15:30 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 10 Feb 2018 20:30:44 +0000 (15:30 -0500)
coders/xcf.c

index a257b2fa8b5d7b799307b7f567d113ab75df91b9..c471609cb8fb6778e28490e325353bb37ffbafb6 100644 (file)
@@ -644,7 +644,7 @@ static MagickBooleanType load_level(Image *image,XCFDocInfo *inDocInfo,
     /* read in the offset of the next tile so we can calculate the amount
        of data needed for this tile*/
     offset2=(MagickOffsetType)ReadBlobMSBLong(image);
-    if (offset2 > GetBlobSize(image))
+    if ((MagickSizeType) offset2 > GetBlobSize(image))
       ThrowBinaryException(CorruptImageError,"InsufficientImageDataInFile",
         image->filename);
     /* if the offset is 0 then we need to read in the maximum possible