From: cristy Date: Wed, 24 Dec 2014 22:30:28 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1557 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eba57e66ad8502d168dfca6ff9f187f4ea2a24ee;p=imagemagick --- diff --git a/MagickCore/blob.c b/MagickCore/blob.c index 6119b3412..e60bf8cbf 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -3709,11 +3709,11 @@ MagickExport MagickOffsetType SeekBlob(Image *image, image->blob->eof=MagickFalse; break; } + if (image->blob->mapped != MagickFalse) + return(-1); if (image->blob->offset < (MagickOffsetType) ((off_t) image->blob->extent)) break; - if (image->blob->mapped != MagickFalse) - return(-1); image->blob->extent=(size_t) (image->blob->offset+image->blob->quantum); image->blob->quantum<<=1; image->blob->data=(unsigned char *) ResizeQuantumMemory(image->blob->data,