[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.
This commit is contained in:
Dominik Röttsches 2019-08-27 15:08:15 +03:00 committed by Werner Lemberg
parent 594156586b
commit cbee985a2b
2 changed files with 9 additions and 1 deletions

View File

@ -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).

View File

@ -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;