From: Cristy Date: Sat, 3 Feb 2018 18:16:37 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3905fcd68b0f754f9d121ecab4630ab968eaf8d;p=imagemagick ... --- diff --git a/MagickCore/blob.c b/MagickCore/blob.c index b42415a0f..2bb35466a 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -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: