fix shape-fuzzer failure

This commit is contained in:
blueshade7 authored and Behdad Esfahbod committed 2019-11-26 18:34:06 +00:00
1 parent a333b0f717
commit ff64652cf6
1 file changed
+1
+1
View File
@@ -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 ();