freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master a11650d: * src/truetype/ttinterp.c (Ins_MD): Avoid `F


From: Werner Lemberg
Subject: [freetype2] master a11650d: * src/truetype/ttinterp.c (Ins_MD): Avoid `FT_ABS`.
Date: Sun, 21 Nov 2021 01:55:14 -0500 (EST)

branch: master
commit a11650d7faf4e91d6ad9aafb1bde5207c2c25124
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>

    * src/truetype/ttinterp.c (Ins_MD): Avoid `FT_ABS`.
    
    Reported as
    
      https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38562
---
 src/truetype/ttinterp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index e07981e..731095e 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 */
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]