ref: 3c41447eefd73607be1b2c9719bc10e3fe709f5f
parent: 43ba0842afdd7d6055678007e34762b59befc32f
author: Werner Lemberg <[email protected]>
date: Wed Jun 25 02:13:36 EDT 2003
* src/cff/cffdrivr.c (cff_get_glyph_name): Protect agains zero glyph name pointer. Reported by Mikey Anbary <[email protected]>.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-24 Werner Lemberg <[email protected]>
+
+ * src/cff/cffdrivr.c (cff_get_glyph_name): Protect agains zero
+ glyph name pointer. Reported by Mikey Anbary <[email protected]>.
+
2003-06-23 Werner Lemberg <[email protected]>
* src/tools/glnames.py: Updated to AGL 2.0.
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -255,7 +255,7 @@
/* now, lookup the name itself */
gname = cff_index_get_sid_string( &font->string_index, sid, psnames );
- if ( buffer_max > 0 )
+ if ( gname && buffer_max > 0 )
{
FT_UInt len = (FT_UInt)ft_strlen( gname );