shithub: freetype+ttf2subf

Download patch

ref: 062f88a4f3c89603fe4bca8cc4e969ea4e9af3a3
parent: 5e8a36867342aca0d74374a2c193cce8a7c78e25
author: Suzuki, Toshiya (鈴木俊哉) <[email protected]>
date: Tue May 20 03:57:53 EDT 2008

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-20  suzuki toshiya  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* src/pshinter/pshalgo.c (ps_hints_apply): Reset scale values after
--- a/src/base/ftmac.c
+++ b/src/base/ftmac.c
@@ -899,7 +899,7 @@
     }
 
     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;
   }