mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
use longer default region quarantine random array
This commit is contained in:
parent
ee55acf116
commit
db21ecd529
@ -23,7 +23,7 @@ common_cflags = [
|
|||||||
"-DCONFIG_LARGE_SIZE_CLASSES=true",
|
"-DCONFIG_LARGE_SIZE_CLASSES=true",
|
||||||
"-DGUARD_SLABS_INTERVAL=1",
|
"-DGUARD_SLABS_INTERVAL=1",
|
||||||
"-DGUARD_SIZE_DIVISOR=2",
|
"-DGUARD_SIZE_DIVISOR=2",
|
||||||
"-DREGION_QUARANTINE_RANDOM_LENGTH=128",
|
"-DREGION_QUARANTINE_RANDOM_LENGTH=256",
|
||||||
"-DREGION_QUARANTINE_QUEUE_LENGTH=1024",
|
"-DREGION_QUARANTINE_QUEUE_LENGTH=1024",
|
||||||
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
|
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
|
||||||
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
|
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
|
||||||
|
2
Makefile
2
Makefile
@ -13,7 +13,7 @@ CONFIG_EXTENDED_SIZE_CLASSES := true
|
|||||||
CONFIG_LARGE_SIZE_CLASSES := true
|
CONFIG_LARGE_SIZE_CLASSES := true
|
||||||
CONFIG_GUARD_SLABS_INTERVAL := 1
|
CONFIG_GUARD_SLABS_INTERVAL := 1
|
||||||
CONFIG_GUARD_SIZE_DIVISOR := 2
|
CONFIG_GUARD_SIZE_DIVISOR := 2
|
||||||
CONFIG_REGION_QUARANTINE_RANDOM_LENGTH := 128
|
CONFIG_REGION_QUARANTINE_RANDOM_LENGTH := 256
|
||||||
CONFIG_REGION_QUARANTINE_QUEUE_LENGTH := 1024
|
CONFIG_REGION_QUARANTINE_QUEUE_LENGTH := 1024
|
||||||
CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD := 33554432 # 32MiB
|
CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD := 33554432 # 32MiB
|
||||||
CONFIG_FREE_SLABS_QUARANTINE_RANDOM_LENGTH := 32
|
CONFIG_FREE_SLABS_QUARANTINE_RANDOM_LENGTH := 32
|
||||||
|
Loading…
Reference in New Issue
Block a user