From ff64652cf6bda18d1d7d54f511eed131464e1f3d Mon Sep 17 00:00:00 2001 From: blueshade7 Date: Tue, 19 Nov 2019 18:50:57 -0800 Subject: [PATCH] fix shape-fuzzer failure --- 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 398d79a2d..405b3f67f 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -1289,6 +1289,7 @@ struct cff1 byte_str_t ustr = (*stringIndex)[sid - cff1_std_strings_length]; gname.name = hb_bytes_t ((const char*)ustr.arrayZ, ustr.length); } + if (unlikely (gname.name.arrayZ == nullptr)) { fini (); return; } glyph_names.push (gname); } glyph_names.qsort ();