shithub: freetype+ttf2subf

Download patch

ref: c12956e700641ed330c6a2ef764963b57ccdabc4
parent: d98053c9971b6305861d301a9d5e9ed6fe18a4f9
author: Werner Lemberg <[email protected]>
date: Fri Oct 9 05:38:32 EDT 2015

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-09  Werner Lemberg  <[email protected]>
+
+	* src/gzip/ftgzip.c (FT_Stream_OpenGzip): Use real stream size.
+
 2015-10-08  Werner Lemberg  <[email protected]>
 
 	[pcf] Protect against invalid number of TOC entries (#46159).
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -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;