[subset/GPOS] Fix a fuzzer timeout test

Fixes https://oss-fuzz.com/testcase-detail/5234369031176192
This commit is contained in:
Behdad Esfahbod 2022-07-26 12:31:15 -06:00
parent 241ebc9354
commit e2cc34e190
2 changed files with 3 additions and 5 deletions

View File

@ -39,12 +39,10 @@ struct SinglePosFormat1
{ {
if (!valueFormat.has_device ()) return; if (!valueFormat.has_device ()) return;
auto it = hb_set_t intersection;
+ hb_iter (this+coverage) (this+coverage).intersect_set (*c->glyph_set, intersection);
| hb_filter (c->glyph_set) if (!intersection) return;
;
if (!it) return;
valueFormat.collect_variation_indices (c, this, values.as_array (valueFormat.get_len ())); valueFormat.collect_variation_indices (c, this, values.as_array (valueFormat.get_len ()));
} }