kernel/events: Allow numFDs greater than max FDs in select().
So long as the numFDs is <= FD_SETSIZE, anyway. Fixes #19220.
This commit is contained in:
@@ -968,7 +968,7 @@ _user_select(int numFDs, fd_set *userReadSet, fd_set *userWriteSet,
|
||||
timeout = B_INFINITE_TIMEOUT;
|
||||
}
|
||||
|
||||
if (numFDs < 0 || !check_max_fds(numFDs))
|
||||
if (numFDs < 0 || (numFDs > FD_SETSIZE && !check_max_fds(numFDs)))
|
||||
return B_BAD_VALUE;
|
||||
|
||||
if ((userReadSet != NULL && !IS_USER_ADDRESS(userReadSet))
|
||||
|
||||
Reference in New Issue
Block a user