From 7d45cf2c8f219263c5b9d84763a9a101138b0ed1 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 11 Sep 2023 20:45:16 -0400 Subject: [PATCH] * 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 );