[subset/hvar] Error handling

Fixes https://oss-fuzz.com/testcase-detail/5029952234586112
pull/4317/head
Behdad Esfahbod 2 years ago
parent 0980e2b748
commit 997986ab30
  1. 2
      src/hb-ot-var-hvar-table.hh
  2. BIN
      test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5029952234586112

@ -120,7 +120,7 @@ struct index_map_subset_plan_t
if (bit_count > inner_bit_count) inner_bit_count = bit_count;
}
output_map.resize (map_count);
if (unlikely (!output_map.resize (map_count))) return;
for (const auto &_ : plan->new_to_old_gid_list)
{
hb_codepoint_t new_gid = _.first;

Loading…
Cancel
Save