[ENOMEM] check for error in lookup visited set.

This commit is contained in:
Garret Rieger 2020-08-12 13:01:22 -07:00 committed by ebraminio
parent eea9b59fc5
commit 9562239f05
2 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,9 @@ struct hb_closure_lookups_context_t :
if (lookup_count++ > HB_MAX_LOOKUP_INDICES)
return true;
if (visited_lookups->in_error ())
return true;
return visited_lookups->has (lookup_index);
}