ref: d56e544d653b09c657911629557ffc5277a503e3
parent: 6b9034f0fdfcd84e62e7c0d29bfd458325f4ccd7
author: Alexei Podtelezhnikov <[email protected]>
date: Mon Jan 28 17:29:51 EST 2013
Add an important comment. Thanks to Hin-Tak Leung for the analysis.
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -989,6 +989,7 @@
l = FT_MIN( l_in, l_out );
+ /* non-strict inequality avoids divide-by-zero when q == l == 0 */
if ( FT_MulFix( xstrength, q ) <= FT_MulFix( d, l ) )
shift.x = FT_MulDiv( shift.x, xstrength, d );
else