From: Cristy Date: Sat, 10 Feb 2018 20:30:44 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8931c437f390a125c3c96c1e8417d9c46c740759;p=imagemagick ... --- diff --git a/coders/xcf.c b/coders/xcf.c index a257b2fa8..c471609cb 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -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