ref: 2a2dca6b401278728086a3984c42888e99ffec5a
parent: e5c14d93b8a7524167516ce224c376fa0e414e64
author: Werner Lemberg <[email protected]>
date: Wed Jun 6 00:39:37 EDT 2007
* src/base/ftoutln.c (FT_Outline_Decompose): Check `last'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-06 Werner Lemberg <[email protected]>
+
+ * src/base/ftoutln.c (FT_Outline_Decompose): Check `last'.
+
2007-06-05 Werner Lemberg <[email protected]>
* src/pfr/pfrgload.c (pfr_glyph_done): Comment out unused code.
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -83,7 +83,9 @@
FT_Int last; /* index of last point in contour */
- last = outline->contours[n];
+ last = outline->contours[n];
+ if ( last < 0 )
+ goto Invalid_Outline;
limit = outline->points + last;
v_start = outline->points[first];