[gsubgpos] Remove wrong condition in Context application

Fixes https://github.com/harfbuzz/harfbuzz/issues/3545
This commit is contained in:
Behdad Esfahbod 2022-04-22 13:48:41 -06:00
parent 038203de61
commit 6695bf0560
1 changed files with 0 additions and 5 deletions

View File

@ -1415,11 +1415,6 @@ static inline void apply_lookup (hb_ot_apply_context_t *c,
if (idx >= count) if (idx >= count)
continue; continue;
/* Don't recurse to ourself at same position.
* Note that this test is too naive, it doesn't catch longer loops. */
if (unlikely (idx == 0 && lookupRecord[i].lookupListIndex == c->lookup_index))
continue;
unsigned int orig_len = buffer->backtrack_len () + buffer->lookahead_len (); unsigned int orig_len = buffer->backtrack_len () + buffer->lookahead_len ();
/* This can happen if earlier recursed lookups deleted many entries. */ /* This can happen if earlier recursed lookups deleted many entries. */