Commit d56e544d653b09c657911629557ffc5277a503e3

Alexei Podtelezhnikov 2013-01-28T22:29:51

Add an important comment. Thanks to Hin-Tak Leung for the analysis.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index 0efd88b..84d64e4 100644
--- 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