Fix Savannah bug #30145.

* src/psaux/psobjs.c (t1_builder_add_contour): Protect against
`outline == NULL' which might happen in invalid fonts.
This commit is contained in:
Werner Lemberg 2010-06-20 16:27:36 +02:00
parent f4c94d4b5f
commit 90b07bd541
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2010-06-20 Werner Lemberg <wl@gnu.org>
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 <wl@gnu.org>
Fix Savannah bug #30135.

View File

@ -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++;