fix shape-fuzzer failure

This commit is contained in:
blueshade7 2019-11-19 18:50:57 -08:00 committed by Behdad Esfahbod
parent a333b0f717
commit ff64652cf6
1 changed files with 1 additions and 0 deletions

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 ();