fix attempt for oss-fuzz 11662 leak
authorMichiharu Ariza <ariza@adobe.com>
Tue, 4 Dec 2018 17:58:48 +0000 (09:58 -0800)
committerMichiharu Ariza <ariza@adobe.com>
Tue, 4 Dec 2018 17:58:48 +0000 (09:58 -0800)
src/hb-ot-cff1-table.hh

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