mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 21:11:28 +01:00
runtime_loader: explicitly randomize rld_heap and _rld_debug_ positions
This commit is contained in:
parent
db1ca60528
commit
9f3bd49737
@ -1031,7 +1031,7 @@ rldelf_init(void)
|
||||
|
||||
runtime_loader_debug_area *area;
|
||||
area_id areaID = _kern_create_area(RUNTIME_LOADER_DEBUG_AREA_NAME,
|
||||
(void **)&area, B_ANY_ADDRESS, size, B_NO_LOCK,
|
||||
(void **)&area, B_RANDOMIZED_ANY_ADDRESS, size, B_NO_LOCK,
|
||||
B_READ_AREA | B_WRITE_AREA);
|
||||
if (areaID < B_OK) {
|
||||
FATAL("Failed to create debug area.\n");
|
||||
|
@ -178,8 +178,8 @@ static status_t
|
||||
add_area(size_t size)
|
||||
{
|
||||
void *base;
|
||||
area_id area = _kern_create_area("rld heap", &base, B_ANY_ADDRESS, size,
|
||||
B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
|
||||
area_id area = _kern_create_area("rld heap", &base,
|
||||
B_RANDOMIZED_ANY_ADDRESS, size, B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
|
||||
if (area < B_OK)
|
||||
return area;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user