Module: wine Branch: master Commit: d96864eb4fbdbd384094b2c7754fc45a3a41d708 URL: https://gitlab.winehq.org/wine/wine/-/commit/d96864eb4fbdbd384094b2c7754fc45...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Dec 11 17:49:15 2023 +0100
server: Leave some free space between modules in ASLR mode.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55993
---
server/mapping.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/server/mapping.c b/server/mapping.c index b5684c484d2..a101110c76c 100644 --- a/server/mapping.c +++ b/server/mapping.c @@ -1165,6 +1165,8 @@ static client_ptr_t assign_map_address( struct mapping *mapping )
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++) { if (range->free[i].size < size) continue;