From 062f88a4f3c89603fe4bca8cc4e969ea4e9af3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Suzuki=2C=20Toshiya=20=28=E9=88=B4=E6=9C=A8=E4=BF=8A?= =?UTF-8?q?=E5=93=89=29?= Date: Tue, 20 May 2008 07:57:53 +0000 Subject: [PATCH] * src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid aface is returned by FT_New_Face_From_FOND() --- ChangeLog | 6 ++++++ src/base/ftmac.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ad7a08092..53c994ccf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-20 suzuki toshiya + + * 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 * src/pshinter/pshalgo.c (ps_hints_apply): Reset scale values after diff --git a/src/base/ftmac.c b/src/base/ftmac.c index 5b265905a..7f059076d 100644 --- a/src/base/ftmac.c +++ b/src/base/ftmac.c @@ -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; }