From 9473463f5c884fcb1de8a7ba7410da2601e6ffa8 Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Tue, 4 Dec 2018 09:58:48 -0800 Subject: [PATCH] fix attempt for oss-fuzz 11662 leak --- src/hb-ot-cff1-table.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-cff1-table.hh b/src/hb-ot-cff1-table.hh index 7bed26360..4221bddfe 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -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];