[GSUB] Don't flush glyphset during recursion in closure()
See comment. Supercedes https://github.com/harfbuzz/harfbuzz/pull/1401 Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11366
This commit is contained in:
parent
8982830d3e
commit
a9e0bdc35d
@ -1449,7 +1449,10 @@ struct SubstLookup : Lookup
|
|||||||
|
|
||||||
hb_closure_context_t::return_t ret = dispatch_recurse_func (c, lookup_index);
|
hb_closure_context_t::return_t ret = dispatch_recurse_func (c, lookup_index);
|
||||||
|
|
||||||
c->flush ();
|
/* While in theory we should flush here, it will cause timeouts because a recursive
|
||||||
|
* lookup can keep growing the glyph set. Skip, and outer loop will retry up to
|
||||||
|
* HB_CLOSURE_MAX_STAGES time, which should be enough for every realistic font. */
|
||||||
|
//c->flush ();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user