mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[repacker] fix fuzzer failure.
Fixes: https://oss-fuzz.com/testcase-detail/6490945267564544
This commit is contained in:
parent
f380a32825
commit
a1f034eaac
2 changed files with 3 additions and 1 deletions
|
@ -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>();
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue