[repacker] fix fuzzer failure.

Fixes: https://oss-fuzz.com/testcase-detail/6490945267564544
pull/4391/head
Garret Rieger 2 years ago committed by Behdad Esfahbod
parent f380a32825
commit a1f034eaac
  1. 4
      src/graph/markbasepos-graph.hh
  2. BIN
      test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-repacker-fuzzer-6490945267564544

@ -318,7 +318,9 @@ struct MarkBasePosFormat1 : public OT::Layout::GPOS_impl::MarkBasePosFormat1_2<S
{
hb_vector_t<class_info_t> class_to_info;
unsigned class_count= classCount;
unsigned class_count = classCount;
if (!class_count) return class_to_info;
if (!class_to_info.resize (class_count))
return hb_vector_t<class_info_t>();

Loading…
Cancel
Save