mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 00:32:59 +00:00
[var] Fix assertion
Fixes https://oss-fuzz.com/testcase-detail/4861707188305920
This commit is contained in:
parent
7cb95c8ab7
commit
9b5afad493
1 changed files with 2 additions and 1 deletions
|
@ -270,7 +270,8 @@ struct TupleVariationHeader
|
|||
|
||||
if (shared_tuple_active_idx)
|
||||
{
|
||||
assert (index < shared_tuple_active_idx->length);
|
||||
if (unlikely (index >= shared_tuple_active_idx->length))
|
||||
return 0.f;
|
||||
int v = (*shared_tuple_active_idx).arrayZ[index];
|
||||
if (v != -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue