From 46bee1d532bca31a094ea70217802c2a81b244e6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 25 Dec 2023 09:09:28 +0100 Subject: Small change with not 48bits memory space for mmap64 (might help #1163) --- src/custommem.c | 2 +- src/wrapped/wrappedlibc.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/custommem.c b/src/custommem.c index 0e2b1a09..2dcc2b02 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -85,7 +85,7 @@ static uint64_t memprot_allocated = 0, memprot_max_allocated = 0; #endif static memprot_t memprot[1<(void*)0x7fffffffff && !have48bits) + errno = EEXIST; + } } #endif if((ret!=MAP_FAILED) && (flags&MAP_FIXED_NOREPLACE) && (ret!=addr)) { -- cgit 1.4.1