From: Cristy Date: Fri, 25 Aug 2017 00:10:16 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/697 X-Git-Tag: 7.0.7-0~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a079c4a36f3a29912bd6ee4ea997622fabbcc189;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/697 --- diff --git a/coders/xcf.c b/coders/xcf.c index 7645b0636..8f7a67e1f 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -648,9 +648,6 @@ static MagickBooleanType load_level(Image *image,XCFDocInfo *inDocInfo, if (offset2 == 0) offset2=(MagickOffsetType) (offset + TILE_WIDTH * TILE_WIDTH * 4* 1.5); /* seek to the tile offset */ - if (offset2 > GetBlobSize(image)) - ThrowBinaryException(CorruptImageError,"InsufficientImageDataInFile", - image->filename); if (SeekBlob(image, offset, SEEK_SET) != offset) ThrowBinaryException(CorruptImageError,"InsufficientImageDataInFile", image->filename);