mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[vector] Better test
This commit is contained in:
1 parent
45fc919a10
commit
3e471bbc08
1 file changed
+1
-1
+1
-1
@@ -391,7 +391,7 @@ struct hb_vector_t
|
||||
|
||||
if (unlikely (new_allocated && !new_array))
|
||||
{
|
||||
if (exact and new_allocated == length)
|
||||
if (new_allocated <= (unsigned) allocated)
|
||||
return true; // shrinking failed; it's okay; happens in our fuzzer
|
||||
|
||||
allocated = -1;
|
||||
|
||||
Reference in new issue
Block a user