From 8931c437f390a125c3c96c1e8417d9c46c740759 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 10 Feb 2018 15:30:44 -0500 Subject: [PATCH] ... --- coders/xcf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0