freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/psaux/cffdecode.c (cff_op_sqrt):


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/psaux/cffdecode.c (cff_op_sqrt): Correct upper limit.
Date: Tue, 12 Sep 2023 00:46:37 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 7d45cf2c
    by Alexei Podtelezhnikov at 2023-09-11T20:45:16-04:00
    * src/psaux/cffdecode.c (cff_op_sqrt): Correct upper limit.
    

1 changed file:

Changes:

  • src/psaux/cffdecode.c
    ... ... @@ -1753,7 +1753,7 @@
    1753 1753
     
    
    1754 1754
               /* without upper limit the loop below might not finish */
    
    1755 1755
               if ( args[0] > 0x7FFFFFFFL )
    
    1756
    -            args[0] = 46341;
    
    1756
    +            args[0] = 0xB504F3L;    /* sqrt( 32768.0 ) */
    
    1757 1757
               else if ( args[0] > 0 )
    
    1758 1758
               {
    
    1759 1759
                 FT_Fixed  root = 1 << ( ( 17 + FT_MSB( args[0] ) ) >> 1 );
    


  • reply via email to

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