mirror of https://github.com/freetype/freetype
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:
parent
f4c94d4b5f
commit
90b07bd541
|
@ -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.
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue