about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-09-19 19:29:39 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-09-19 19:29:39 +0200
commitf2a0a1b62dd6b3935dcf4ab0420612c58c05e38e (patch)
tree843381fd52b914908ef2e0f628c11de9189115ca /src
parentdcb4bbb3e622f657f94e5ce3e79a1557281643cc (diff)
downloadbox64-f2a0a1b62dd6b3935dcf4ab0420612c58c05e38e.tar.gz
box64-f2a0a1b62dd6b3935dcf4ab0420612c58c05e38e.zip
Small fix to protection tracking on signal handling
Diffstat (limited to 'src')
-rwxr-xr-xsrc/libtools/signals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c
index 72bd00fc..224260b5 100755
--- a/src/libtools/signals.c
+++ b/src/libtools/signals.c
@@ -791,7 +791,7 @@ void my_box64signalhandler(int32_t sig, siginfo_t* info, void * ucntx)
     }
     dynablock_t* db = NULL;
     int db_searched = 0;
-    if ((sig==SIGSEGV) && (addr) && (info->si_code == SEGV_ACCERR) && (prot&PROT_DYNAREC)) {
+    if ((sig==SIGSEGV) && (addr) && (info->si_code == SEGV_ACCERR) && (prot&PROT_CUSTOM)) {
         pthread_mutex_lock(&mutex_dynarec_prot);
         // check if SMC inside block
         db = FindDynablockFromNativeAddress(pc);