[vector] It's okay if shrinking fails
This commit is contained in:
parent
6c272b920d
commit
d8509061e6
|
@ -391,6 +391,9 @@ struct hb_vector_t
|
||||||
|
|
||||||
if (unlikely (new_allocated && !new_array))
|
if (unlikely (new_allocated && !new_array))
|
||||||
{
|
{
|
||||||
|
if (exact and new_allocated == length)
|
||||||
|
return true; // shrinking failed; it's okay; happens in our fuzzer
|
||||||
|
|
||||||
allocated = -1;
|
allocated = -1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue