mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-15 04:32:21 -04:00
add extended size classes to offset test
This commit is contained in:
parent
bc75c4db7b
commit
539d4f0d37
2 changed files with 9 additions and 2 deletions
|
@ -13,7 +13,12 @@ static unsigned size_classes[] = {
|
|||
/* 256 */ 1280, 1536, 1792, 2048,
|
||||
/* 512 */ 2560, 3072, 3584, 4096,
|
||||
/* 1024 */ 5120, 6144, 7168, 8192,
|
||||
/* 2048 */ 10240, 12288, 14336, 16384
|
||||
/* 2048 */ 10240, 12288, 14336, 16384,
|
||||
#if CONFIG_EXTENDED_SIZE_CLASSES
|
||||
/* 4096 */ 20480, 24576, 28672, 32768,
|
||||
/* 8192 */ 40960, 49152, 57344, 65536,
|
||||
/* 16384 */ 81920, 98304, 114688, 131072,
|
||||
#endif
|
||||
};
|
||||
|
||||
#define N_SIZE_CLASSES (sizeof(size_classes) / sizeof(size_classes[0]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue