* src/truetype/ttinterp.c (TT_RunIns): Use `FT_OFFSET'.

Reported as

  https://bugs.chromium.org/p/chromium/issues/detail?id=1030614
GSoC-2020-greg
Werner Lemberg 5 years ago
parent 551bd3a90e
commit dfc9a049de
  1. 8
      ChangeLog
  2. 2
      src/truetype/ttinterp.c

@ -1,3 +1,11 @@
2019-12-05 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (TT_RunIns): Use `FT_OFFSET'.
Reported as
https://bugs.chromium.org/p/chromium/issues/detail?id=1030614
2019-12-03 Werner Lemberg <wl@gnu.org>
More nullptr offset UBSan warnings (#57331, #57347).

@ -8567,7 +8567,7 @@
case FT_ERR( Invalid_Opcode ):
{
TT_DefRecord* def = exc->IDefs;
TT_DefRecord* limit = def + exc->numIDefs;
TT_DefRecord* limit = FT_OFFSET( def, exc->numIDefs );
for ( ; def < limit; def++ )

Loading…
Cancel
Save