pull/2363/head
ckitagawa 5 years ago committed by Behdad Esfahbod
parent 1cd14b40e7
commit b22f61d86a
  1. 7
      src/hb-ot-color-cbdt-table.hh
  2. BIN
      test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5684014636859392

@ -572,7 +572,12 @@ struct IndexSubtableArray
for (unsigned int start = 0; start < lookup.length;)
{
if (unlikely (!lookup[start].second->add_new_record (c, bitmap_size_context, &lookup, this, &start, &records)))
return_trace (false);
{
// Discard any leftover pushes to the serializer from successful records.
for (unsigned int i = 0; i < records.length; i++)
c->serializer->pop_discard ();
return_trace (false);
}
}
// Workaround to ensure offset ordering is from least to greatest when

Loading…
Cancel
Save