Skip to content

Commit

Permalink
exceptor: Add SA_ONSTACK flag the POSIX backend
Browse files Browse the repository at this point in the history
Add the SA_ONSTACK flag to handle situations where and alternative
signal stack has been configured using `sigaltstack`. In the situations
where no alternative stack was configured, this behaves as if the flag
has not been set.
  • Loading branch information
asabil committed May 23, 2024
1 parent 97b65df commit bf62a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gum/backend-posix/gumexceptor-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ gum_exceptor_backend_attach (GumExceptorBackend * self)

action.sa_sigaction = gum_exceptor_backend_on_signal;
sigemptyset (&action.sa_mask);
action.sa_flags = SA_SIGINFO | SA_NODEFER;
action.sa_flags = SA_SIGINFO | SA_NODEFER | SA_ONSTACK;
for (i = 0; i != G_N_ELEMENTS (handled_signals); i++)
{
gint sig = handled_signals[i];
Expand Down

0 comments on commit bf62a36

Please sign in to comment.