]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 3 Feb 2018 18:16:37 +0000 (13:16 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 3 Feb 2018 18:16:37 +0000 (13:16 -0500)
MagickCore/blob.c

index b42415a0fdfefe60823b4ce3ba10f37978451c09..2bb35466a7d4ace9b5f852247b683c9e4c4322ef 100644 (file)
@@ -2713,7 +2713,6 @@ MagickExport MagickBooleanType IsBlobSeekable(const Image *image)
     case BlobStream:
       return(MagickTrue);
     case FileStream:
-    case ZipStream:
     {
       int
         status;
@@ -2723,6 +2722,16 @@ MagickExport MagickBooleanType IsBlobSeekable(const Image *image)
       status=fseek(blob_info->file_info.file,0,SEEK_CUR);
       return(status == -1 ? MagickFalse : MagickTrue);
     }
+    case ZipStream:
+    {
+      int
+        status;
+
+      if (blob_info->file_info.gzfile == (gzFile) NULL)
+        return(MagickFalse);
+      status=gzseek(blob_info->file_info.gzfile,0,SEEK_CUR);
+      return(status == -1 ? MagickFalse : MagickTrue);
+    }
     case UndefinedStream:
     case BZipStream:
     case FifoStream: