[sudo-commits] sudo changeset 12385:ab0f798bb024
Todd C. Miller
Todd.Miller at sudo.ws
Thu Apr 30 15:56:26 MDT 2020
changeset: 12385:ab0f798bb024 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/ab0f798bb024
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Thu Apr 30 15:54:34 2020 -0600
Log Message:
Do not call poll(2) or ppoll(2) with nfds > RLIMIT_NOFILE.
Both poll(2) and ppoll(2) will return EINVAL if the nfds function
argument is larger than the max files per process resource limit.
Prevent this by limiting the max number entries in the pfds[] array
to the RLIMIT_NOFILE soft limit.
diffstat:
lib/util/event_poll.c | 44 ++++++++++++++++++++++++++++++++++++--------
1 files changed, 36 insertions(+), 8 deletions(-)
More information about the sudo-commits
mailing list