* src/gzip/ftgzip.c (FT_Stream_OpenGzip): Use real stream size.

This commit is contained in:
Werner Lemberg 2015-10-09 09:38:32 +02:00
parent d98053c997
commit c12956e700
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-10-09 Werner Lemberg <wl@gnu.org>
* src/gzip/ftgzip.c (FT_Stream_OpenGzip): Use real stream size.
2015-10-08 Werner Lemberg <wl@gnu.org>
[pcf] Protect against invalid number of TOC entries (#46159).

View File

@ -691,9 +691,13 @@
}
error = FT_Err_Ok;
}
if ( zip_size )
stream->size = zip_size;
else
stream->size = 0x7FFFFFFFL; /* don't know the real size! */
}
stream->size = 0x7FFFFFFFL; /* don't know the real size! */
stream->pos = 0;
stream->base = NULL;
stream->read = ft_gzip_stream_io;