* src/cff/cffgload.c (cff_builder_init): Add safety guard (#50578).

This commit is contained in:
Werner Lemberg 2017-03-20 05:34:02 +01:00
parent 7aeee3c50f
commit dd64a6227c
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2017-03-20 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.c (cff_builder_init): Add safety guard (#50578).
2017-03-18 Werner Lemberg <wl@gnu.org>
Introduce FT_UINT_TO_POINTER macro (#50560).

View File

@ -281,8 +281,11 @@
CFF_Internal internal = (CFF_Internal)size->root.internal;
builder->hints_globals = (void *)internal->topfont;
builder->hints_funcs = glyph->root.internal->glyph_hints;
if ( internal )
{
builder->hints_globals = (void *)internal->topfont;
builder->hints_funcs = glyph->root.internal->glyph_hints;
}
}
}