mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 00:32:59 +00:00
[subset] Handle an error condition
Fixes https://oss-fuzz.com/testcase-detail/6306810588692480
This commit is contained in:
parent
7d3d157de8
commit
6783701b4e
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ _generate_varstore_inner_maps (const hb_set_t& varidx_set,
|
|||
{
|
||||
if (varidx_set.is_empty () || subtable_count == 0) return;
|
||||
|
||||
inner_maps.resize (subtable_count);
|
||||
if (unlikely (!inner_maps.resize (subtable_count))) return;
|
||||
for (unsigned idx : varidx_set)
|
||||
{
|
||||
uint16_t major = idx >> 16;
|
||||
|
|
Loading…
Add table
Reference in a new issue