mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
signal: fix stack corruption on action reset
This commit is contained in:
@@ -415,7 +415,7 @@ bool signal_check(struct thread_t *thread, context_t *context, bool syscall, uin
|
|||||||
|
|
||||||
// reset handler if asked for
|
// reset handler if asked for
|
||||||
if (action->flags & SA_RESETHAND)
|
if (action->flags & SA_RESETHAND)
|
||||||
memset(&action, 0, sizeof(sigaction_t));
|
memset(action, 0, sizeof(sigaction_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
leave:
|
leave:
|
||||||
|
|||||||
Reference in New Issue
Block a user