* select.cc (select_stuff::wait): Correctly check for w4 array bounds.
This commit is contained in:
@@ -233,7 +233,7 @@ select_stuff::wait (fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
||||
counting the number of active fds. */
|
||||
while ((s = s->next))
|
||||
{
|
||||
if (m > MAXIMUM_WAIT_OBJECTS)
|
||||
if (m >= MAXIMUM_WAIT_OBJECTS)
|
||||
{
|
||||
set_sig_errno (EINVAL);
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user