* src/cff/cffdrivr.c (cff_get_glyph_name): Protect agains zero

glyph name pointer.  Reported by Mikey Anbary <manbary@vizrt.com>.
This commit is contained in:
Werner Lemberg 2003-06-25 06:13:36 +00:00
parent 1d5cb2c4d2
commit 6455780524
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-06-24 Werner Lemberg <wl@gnu.org>
* src/cff/cffdrivr.c (cff_get_glyph_name): Protect agains zero
glyph name pointer. Reported by Mikey Anbary <manbary@vizrt.com>.
2003-06-23 Werner Lemberg <wl@gnu.org>
* src/tools/glnames.py: Updated to AGL 2.0.

View File

@ -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 );