Commit d96864eb authored by Alexandre Julliard's avatar Alexandre Julliard

server: Leave some free space between modules in ASLR mode.

parent 00692f5b
...@@ -1165,6 +1165,8 @@ static client_ptr_t assign_map_address( struct mapping *mapping ) ...@@ -1165,6 +1165,8 @@ static client_ptr_t assign_map_address( struct mapping *mapping )
if ((ret = get_fd_map_address( mapping->fd ))) return ret; if ((ret = get_fd_map_address( mapping->fd ))) return ret;
size += granularity_mask + 1; /* leave some free space between mappings */
for (i = 0; i < range->count; i++) for (i = 0; i < range->count; i++)
{ {
if (range->free[i].size < size) continue; if (range->free[i].size < size) continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment