mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Return EINVAL in case when an invalid size of signal mask specified.
MFC after: 1 month
This commit is contained in:
parent
af68739567
commit
2fa6d2fe84
1 changed files with 2 additions and 0 deletions
|
|
@ -622,6 +622,8 @@ linux_epoll_pwait(struct thread *td, struct linux_epoll_pwait_args *args)
|
|||
int error;
|
||||
|
||||
if (args->mask != NULL) {
|
||||
if (args->sigsetsize != sizeof(l_sigset_t))
|
||||
return (EINVAL);
|
||||
error = copyin(args->mask, &lmask, sizeof(l_sigset_t));
|
||||
if (error != 0)
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue