* select.cc (select_stuff::wait): Correctly check for w4 array bounds.

This commit is contained in:
Christopher Faylor 2004-08-10 15:05:37 +00:00
parent f97a9313ea
commit fe3db6cc89
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-08-10 Christopher Faylor <cgf@redhat.com>
* select.cc (select_stuff::wait): Correctly check for w4 array bounds.
2004-08-03 Corinna Vinschen <corinna@vinschen.de>
* errno.cc (errmap): Add ERROR_TOO_MANY_LINKS -> EMLINK mapping.

View File

@ -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;