shithub: freetype+ttf2subf

Download patch

ref: 8f47453b6a466d32de347de527b350129975b4cc
parent: f223df6e79512ee01a4caa4f096f678532016981
author: Werner Lemberg <[email protected]>
date: Wed Feb 7 03:31:01 EST 2007

* src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL
pointer.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-07  Tom Parker  <[email protected]>
+
+	* src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL
+	pointer.
+
 2007-02-05  suzuki toshiya  <[email protected]>
 
 	* include/freetype/ftmac.h (FT_DEPRECATED_ATTRIBUTE):
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -270,6 +270,9 @@
       else
         name = (FT_String *)psnames->adobe_std_strings( sid );
 
+      if ( !name )
+        continue;
+
       result = ft_strcmp( glyph_name, name );
 
       if ( sid > 390 )