diff options
author | Werner Lemberg <wl@gnu.org> | 2021-11-21 07:51:31 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2021-11-21 07:54:49 +0100 |
commit | a11650d7faf4e91d6ad9aafb1bde5207c2c25124 (patch) | |
tree | 2f796597201a5ae3301d0726f5aafabcb8d4ea4a /src/truetype/ttinterp.c | |
parent | f8a4163a459e828a1b908b1f64737b2daab17299 (diff) | |
download | freetype2-a11650d7faf4e91d6ad9aafb1bde5207c2c25124.tar.gz |
* src/truetype/ttinterp.c (Ins_MD): Avoid `FT_ABS`.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38562
Diffstat (limited to 'src/truetype/ttinterp.c')
-rw-r--r-- | src/truetype/ttinterp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index e07981e06..731095ed0 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -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 */ |