syscalls: misc vulnerability fixes

This commit is contained in:
Matheus
2026-04-28 21:27:51 -03:00
parent 02a47c8303
commit 42cec91cb9
6 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ syscallret_t syscall_sigaction(context_t *, int sig, sigaction_t *new, sigaction
.ret = -1
};
if (sig > NSIG || sig == SIGKILL || sig == SIGSTOP) {
if (sig >= NSIG || sig == SIGKILL || sig == SIGSTOP) {
ret.errno = EINVAL;
return ret;
}