From: cristy Date: Tue, 14 Aug 2012 12:43:27 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c69908373e2725d2142152a376c9d392feeab265;p=imagemagick --- diff --git a/coders/jnx.c b/coders/jnx.c index 677640ca9..d2d498c06 100644 --- a/coders/jnx.c +++ b/coders/jnx.c @@ -223,10 +223,15 @@ static Image *ReadJNXImage(const ImageInfo *image_info,ExceptionInfo *exception) images=NewImageList(); for (i=0; i < (ssize_t) jnx_info.levels; i++) { + MagickOffsetType + offset; + register ssize_t j; - (void) SeekBlob(image,(MagickOffsetType) jnx_level_info[i].offset,SEEK_SET); + offset=SeekBlob(image,(MagickOffsetType) jnx_level_info[i].offset,SEEK_SET); + if (offset != (MagickOffsetType) jnx_level_info[i].offset) + continue; for (j=0; j < (ssize_t) jnx_level_info[i].count; j++) { Image @@ -238,9 +243,6 @@ static Image *ReadJNXImage(const ImageInfo *image_info,ExceptionInfo *exception) int tile_offset; - MagickOffsetType - offset; - PointInfo northeast, southwest;