mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1127935 - Check for null when trying to load 'head' table, to avoid crashing on non-sfnt fonts. r=jdaggett
This commit is contained in:
parent
44bace9e64
commit
ee276d8a7b
@ -417,6 +417,9 @@ gfxHarfBuzzShaper::FindGlyf(hb_codepoint_t aGlyph, bool *aEmptyGlyf) const
|
||||
uint32_t len;
|
||||
gfxFontEntry::AutoTable headTable(entry,
|
||||
TRUETYPE_TAG('h','e','a','d'));
|
||||
if (!headTable) {
|
||||
return nullptr;
|
||||
}
|
||||
const HeadTable* head =
|
||||
reinterpret_cast<const HeadTable*>(hb_blob_get_data(headTable,
|
||||
&len));
|
||||
|
Loading…
Reference in New Issue
Block a user