mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 17:47:22 +03:00
add a size check when declare a stack array to be less than 2048 bytes
This commit is contained in:
parent
8dc97b1108
commit
48f66cf4a2
4 changed files with 11 additions and 7 deletions
|
|
@ -61,8 +61,8 @@ static void
|
|||
hash_variant_verify_key(hash_variant_t variant, uint8_t *key) {
|
||||
const int hashbytes = hash_variant_bits(variant) / 8;
|
||||
const int hashes_size = hashbytes * 256;
|
||||
VARIABLE_ARRAY(uint8_t, hashes, hashes_size);
|
||||
VARIABLE_ARRAY(uint8_t, final, hashbytes);
|
||||
VARIABLE_ARRAY_UNSAFE(uint8_t, hashes, hashes_size);
|
||||
VARIABLE_ARRAY_UNSAFE(uint8_t, final, hashbytes);
|
||||
unsigned i;
|
||||
uint32_t computed, expected;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue