]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 2 May 2015 17:10:11 +0000 (17:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 2 May 2015 17:10:11 +0000 (17:10 +0000)
MagickCore/blob.c

index 3abb8ba9859e116735952dd40a9ac46924b5d1ed..dccc8391c35c26b4f049988dda61e347bf330fd9 100644 (file)
@@ -3767,8 +3767,12 @@ MagickExport MagickOffsetType SeekBlob(Image *image,
           image->blob->eof=MagickFalse;
           break;
         }
-      if (image->blob->mapped != MagickFalse)
-        return(-1);
+      if ((image->blob->type == BlobStream) ||
+          (image->blob->mapped != MagickFalse))
+        {
+          image->blob->eof=MagickTrue;
+          return(-1);
+        }
       if (image->blob->offset < (MagickOffsetType)
           ((off_t) image->blob->extent))
         break;