From 90e2f04c34e0fb4233683a41fc2b337d1e53bbea Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 15 Nov 2023 10:17:12 +0100 Subject: Workaround to handle SIGMAX properly (should help #1056) --- src/include/box64context.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/box64context.h b/src/include/box64context.h index 0a8f6532..96442038 100644 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -198,10 +198,10 @@ typedef struct box64context_s { uint8_t canary[8]; - uintptr_t signals[MAX_SIGNAL]; - uintptr_t restorer[MAX_SIGNAL]; - int onstack[MAX_SIGNAL]; - int is_sigaction[MAX_SIGNAL]; + uintptr_t signals[MAX_SIGNAL+1]; // signal should be 1..MAX_SIGNAL (no 0), but that's too much change... + uintptr_t restorer[MAX_SIGNAL+1]; + int onstack[MAX_SIGNAL+1]; + int is_sigaction[MAX_SIGNAL+1]; x64emu_t *emu_sig; // the emu with stack used for signal handling (must be separated from main ones) int no_sigsegv; int no_sigill; -- cgit 1.4.1