ref: 90b07bd54194c507df9f431feb5dbb4bb7ba8b3c
parent: f4c94d4b5f6b3e13415025ffa6fa07415d00104d
author: Werner Lemberg <[email protected]>
date: Sun Jun 20 12:27:36 EDT 2010
Fix Savannah bug #30145. * src/psaux/psobjs.c (t1_builder_add_contour): Protect against `outline == NULL' which might happen in invalid fonts.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-06-20 Werner Lemberg <[email protected]>
+
+ Fix Savannah bug #30145.
+
+ * src/psaux/psobjs.c (t1_builder_add_contour): Protect against
+ `outline == NULL' which might happen in invalid fonts.
+
2010-06-19 Werner Lemberg <[email protected]>
Fix Savannah bug #30135.
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -1589,6 +1589,13 @@
FT_Error error;
+ /* this might happen in invalid fonts */
+ if ( !outline )
+ {
+ FT_ERROR(( "t1_builder_add_contour: no outline to add points to\n" ));
+ return PSaux_Err_Invalid_File_Format;
+ }
+
if ( !builder->load_points )
{
outline->n_contours++;