[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.
GSoC-2020-greg
Dominik Röttsches 5 years ago committed by Werner Lemberg
parent 594156586b
commit cbee985a2b
  1. 8
      ChangeLog
  2. 2
      src/sfnt/sfwoff2.c

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

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

Loading…
Cancel
Save