[aat] Fix ContextualSubtable sanitization
Fixes MORX-18, MORX-19, and MORX-22.
This commit is contained in:
parent
cf943f682b
commit
fe5f9b1ae3
|
@ -275,8 +275,10 @@ struct ContextualSubtable
|
|||
{
|
||||
const EntryData &data = entries[i].data;
|
||||
|
||||
num_lookups = MAX<unsigned int> (num_lookups, 1 + data.markIndex);
|
||||
num_lookups = MAX<unsigned int> (num_lookups, 1 + data.currentIndex);
|
||||
if (data.markIndex != 0xFFFF)
|
||||
num_lookups = MAX<unsigned int> (num_lookups, 1 + data.markIndex);
|
||||
if (data.currentIndex != 0xFFFF)
|
||||
num_lookups = MAX<unsigned int> (num_lookups, 1 + data.currentIndex);
|
||||
}
|
||||
|
||||
return_trace (substitutionTables.sanitize (c, this, num_lookups));
|
||||
|
|
Loading…
Reference in New Issue