forked from minhngoc25a/freetype2
* src/gzip/ftgzip.c (FT_Stream_OpenGzip): Use real stream size.
This commit is contained in:
parent
d98053c997
commit
c12956e700
|
@ -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).
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue