shithub: freetype+ttf2subf

Download patch

ref: cbee985a2bc14750ff850192f9ee8c1efe2bd7c7
parent: 594156586b888805681a7085a780bd743fb180bd
author: Dominik Röttsches <drott@chromium.org>
date: Tue Aug 27 11:08:15 EDT 2019

[woff2] Don't use `FT_UInt64' (#56815).

* src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
`file_offset'.  This fixes builds on platforms where `FT_LONG64' is
not defined while still being sufficient to store a file offset.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-08-27  Dominik Röttsches  <drott@chromium.org>
+
+	[woff2] Don't use `FT_UInt64' (#56815).
+
+	* src/sfnt/sfwoff2.c (woff2_open_font): Use `FT_UInt32' for
+	`file_offset'.  This fixes builds on platforms where `FT_LONG64' is
+	not defined while still being sufficient to store a file offset.
+
 2019-08-27  Werner Lemberg  <wl@gnu.org>
 
 	[truetype] Prevent crash in `TT_Set_Named_Instance' (#56813).
--- a/src/sfnt/sfwoff2.c
+++ b/src/sfnt/sfwoff2.c
@@ -1739,7 +1739,7 @@
 
     FT_UInt    glyf_index;
     FT_UInt    loca_index;
-    FT_UInt64  file_offset;
+    FT_UInt32  file_offset;
 
     FT_Byte*   sfnt        = NULL;
     FT_Stream  sfnt_stream = NULL;