freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 7d45cf2c8: * src/psaux/cffdecode.c (cff_op_sqrt): Cor


From: Werner Lemberg
Subject: [freetype2] master 7d45cf2c8: * src/psaux/cffdecode.c (cff_op_sqrt): Correct upper limit.
Date: Mon, 11 Sep 2023 20:46:44 -0400 (EDT)

branch: master
commit 7d45cf2c8f219263c5b9d84763a9a101138b0ed1
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/psaux/cffdecode.c (cff_op_sqrt): Correct upper limit.
---
 src/psaux/cffdecode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/psaux/cffdecode.c b/src/psaux/cffdecode.c
index 0f1cd683c..70173ccb7 100644
--- a/src/psaux/cffdecode.c
+++ b/src/psaux/cffdecode.c
@@ -1753,7 +1753,7 @@
 
           /* without upper limit the loop below might not finish */
           if ( args[0] > 0x7FFFFFFFL )
-            args[0] = 46341;
+            args[0] = 0xB504F3L;    /* sqrt( 32768.0 ) */
           else if ( args[0] > 0 )
           {
             FT_Fixed  root = 1 << ( ( 17 + FT_MSB( args[0] ) ) >> 1 );



reply via email to

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