aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-08-10 15:05:37 +0000
committerChristopher Faylor <me@cgf.cx>2004-08-10 15:05:37 +0000
commitfe3db6cc89fa082c9eb7e5ccf977a57871509b89 (patch)
tree2d871e682f02b3d05989c260459bb295f3441fc8 /winsup
parentf97a9313ea979684f093010e94267211323e70bc (diff)
downloadnewlib-fe3db6cc89fa082c9eb7e5ccf977a57871509b89.zip
newlib-fe3db6cc89fa082c9eb7e5ccf977a57871509b89.tar.gz
newlib-fe3db6cc89fa082c9eb7e5ccf977a57871509b89.tar.bz2
* select.cc (select_stuff::wait): Correctly check for w4 array bounds.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/select.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b15de93..10262ab 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index eba122e..b244469 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -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;