* src/truetype/ttinterp.c (Ins_MD): Avoid `FT_ABS`.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38562
This commit is contained in:
Werner Lemberg 2021-11-21 07:51:31 +01:00
parent f8a4163a45
commit a11650d7fa
1 changed files with 3 additions and 3 deletions

View File

@ -5003,9 +5003,9 @@
#ifdef TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
/* Disable Type 2 Vacuform Rounds - e.g. Arial Narrow */
if ( SUBPIXEL_HINTING_INFINALITY &&
exc->ignore_x_mode &&
FT_ABS( D ) == 64 )
if ( SUBPIXEL_HINTING_INFINALITY &&
exc->ignore_x_mode &&
( D < 0 ? NEG_LONG( D ) : D ) == 64 )
D += 1;
#endif /* TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY */