[Coverage] Speed up subset for too-large Coverage tables

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54980
This commit is contained in:
Behdad Esfahbod 2023-01-10 10:18:29 -07:00
parent 8460909e0c
commit 0728098e45
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ struct Coverage
TRACE_SUBSET (this);
auto it =
+ iter ()
| hb_take (c->plan->source->get_num_glyphs ())
| hb_filter (c->plan->glyph_map_gsub)
| hb_map_retains_sorting (c->plan->glyph_map_gsub)
;