fix attempt for oss-fuzz 11662 leak

This commit is contained in:
Michiharu Ariza 2018-12-04 09:58:48 -08:00
parent c968869f21
commit 9473463f5c
1 changed files with 1 additions and 0 deletions

View File

@ -1093,6 +1093,7 @@ struct cff1
CFF1FontDict_Interpreter font_interp; CFF1FontDict_Interpreter font_interp;
font_interp.env.init (fontDictStr); font_interp.env.init (fontDictStr);
font = fontDicts.push (); font = fontDicts.push ();
if (font == &Crap(CFF1FontDictValues)) { fini (); return; }
font->init (); font->init ();
if (unlikely (!font_interp.interpret (*font))) { fini (); return; } if (unlikely (!font_interp.interpret (*font))) { fini (); return; }
PRIVDICTVAL *priv = &privateDicts[i]; PRIVDICTVAL *priv = &privateDicts[i];