* select.cc (select_stuff::wait): Correctly check for w4 array bounds.
This commit is contained in:
parent
f97a9313ea
commit
fe3db6cc89
|
@ -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>
|
2004-08-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* errno.cc (errmap): Add ERROR_TOO_MANY_LINKS -> EMLINK mapping.
|
* errno.cc (errmap): Add ERROR_TOO_MANY_LINKS -> EMLINK mapping.
|
||||||
|
|
|
@ -233,7 +233,7 @@ select_stuff::wait (fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
||||||
counting the number of active fds. */
|
counting the number of active fds. */
|
||||||
while ((s = s->next))
|
while ((s = s->next))
|
||||||
{
|
{
|
||||||
if (m > MAXIMUM_WAIT_OBJECTS)
|
if (m >= MAXIMUM_WAIT_OBJECTS)
|
||||||
{
|
{
|
||||||
set_sig_errno (EINVAL);
|
set_sig_errno (EINVAL);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue