* src/truetype/ttinterp.c: add missing variable initialization, gets rid of Valgrind fixes. * src/autofit/aflatin.c: get rid of an infinite loop in the case of degenerate fonts.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/ChangeLog b/ChangeLog
index 38493fb..20d4807 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-06-30 David Turner <david@freetype.org>
+
+ * src/truetype/ttinterp.c: add missing variable initialization,
+ gets rid of Valgrind fixes.
+
+ * src/autofit/aflatin.c: get rid of an infinite loop in the case
+ of degenerate fonts.
+
2007-06-26 Rahul Bhalerao <b.rahul.pm@gmail.com>
Add autofit module for Indic scripts. This currently just reuses
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 6b4e8c2..2ae9ec5 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -269,6 +269,7 @@
/* now check whether the point belongs to a straight or round */
/* segment; we first need to find in which contour the extremum */
/* lies, then inspect its previous and next points */
+ if ( best_point >= 0 )
{
FT_Int prev, next;
FT_Pos dist;
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index 4e35147..85c8529 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -6424,6 +6424,7 @@
V.curs = (FT_Vector*)( (FT_Pos*)CUR.pts.cur + 1 );
V.orus = (FT_Vector*)( (FT_Pos*)CUR.pts.orus + 1 );
}
+ V.max_points = CUR.pts.n_points;
contour = 0;
point = 0;