Minor fix re sanitize of Lookup subtables

We were dereferencing Null pointers and trying to sanitize them,
which is not necessary...
This commit is contained in:
Behdad Esfahbod 2018-12-11 23:44:29 -05:00
parent ce069d1932
commit 7146718bef
1 changed files with 3 additions and 1 deletions

View File

@ -693,7 +693,9 @@ struct Lookup
unsigned int lookup_type = get_type ();
TRACE_DISPATCH (this, lookup_type);
unsigned int count = get_subtable_count ();
for (unsigned int i = 0; i < count; i++) {
for (unsigned int i = 0; i < count; i++)
{
if (unlikely (!subTable.arrayZ[i])) continue;
typename context_t::return_t r = get_subtable<TSubTable> (i).dispatch (c, lookup_type);
if (c->stop_sublookup_iteration (r))
return_trace (r);