ref: dd64a6227ceda32a90c06f77cf44e23dad95cb78
parent: 7aeee3c50f2656b65f7dc207aa2020bb1398da98
author: Werner Lemberg <[email protected]>
date: Mon Mar 20 01:34:02 EDT 2017
* src/cff/cffgload.c (cff_builder_init): Add safety guard (#50578).
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-20 Werner Lemberg <[email protected]>
+
+ * src/cff/cffgload.c (cff_builder_init): Add safety guard (#50578).
+
2017-03-18 Werner Lemberg <[email protected]>
Introduce FT_UINT_TO_POINTER macro (#50560).
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -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;
+ }
}
}