* src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid aface is returned by FT_New_Face_From_FOND()

This commit is contained in:
Suzuki, Toshiya (鈴木俊哉) 2008-05-20 07:57:53 +00:00
parent 5e8a368673
commit 062f88a4f3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-05-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid
aface is returned by FT_New_Face_From_FOND(). The patch was
proposed by anonymous reporter of Savannah bug #23204.
2008-05-18 Werner Lemberg <wl@gnu.org>
* src/pshinter/pshalgo.c (ps_hints_apply): Reset scale values after

View File

@ -899,7 +899,7 @@ typedef short ResourceIndex;
}
CloseResFile( res_ref );
if ( FT_Err_Ok == error && NULL != aface )
if ( FT_Err_Ok == error && NULL != aface && NULL != *aface )
(*aface)->num_faces = num_faces_in_res;
return error;
}