Reject lookups with no subTable
This commit is contained in:
parent
0981068b75
commit
30ec9002d8
@ -313,6 +313,7 @@ struct Lookup
|
||||
TRACE_SANITIZE ();
|
||||
/* Real sanitize of the subtables is done by GSUB/GPOS/... */
|
||||
if (!(c->check_struct (this) && subTable.sanitize (c))) return TRACE_RETURN (false);
|
||||
if (!subTable.len) TRACE_RETURN (false);
|
||||
if (unlikely (lookupFlag & LookupFlag::UseMarkFilteringSet))
|
||||
{
|
||||
USHORT &markFilteringSet = StructAfter<USHORT> (subTable);
|
||||
|
Loading…
Reference in New Issue
Block a user