Reject lookups with no subTable

This commit is contained in:
Behdad Esfahbod 2012-07-28 17:25:20 -04:00
parent 0981068b75
commit 30ec9002d8
1 changed files with 1 additions and 0 deletions

View File

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