[ENOMEM] check for error in visited map during closure features.

This commit is contained in:
Garret Rieger 2020-08-12 13:06:37 -07:00 committed by ebraminio
parent 9562239f05
commit 1e4fe10b98
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,9 @@ struct hb_closure_context_t :
bool is_lookup_done (unsigned int lookup_index)
{
if (done_lookups->in_error ())
return true;
/* Have we visited this lookup with the current set of glyphs? */
return done_lookups->get (lookup_index) == glyphs->get_population ();
}