From cb27ac8d933f2e4cd81bdf67d0bf4ee70e3dcdd2 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 8 Apr 2021 16:26:33 +0200 Subject: Fixed memory protection that wasn't updated correctly --- src/custommem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/custommem.c b/src/custommem.c index 80453230..634b849b 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -678,7 +678,7 @@ void protectDB(uintptr_t addr, uintptr_t size) prot = PROT_READ | PROT_WRITE; // comes from malloc & co, so should not be able to execute kh_value(memprot, k)[ii] = prot|PROT_DYNAREC; if(!(prot&PROT_DYNAREC)) - mprotect((void*)(i<