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

2.6.5
Werner Lemberg 9 years ago
parent d98053c997
commit c12956e700
  1. 4
      ChangeLog
  2. 6
      src/gzip/ftgzip.c

@ -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…
Cancel
Save