diff options
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/readv.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index d6860fe75a..259ce4086c 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-04-25 Joel Sherrill <joel.sherrill@oarcorp.com> + + * libcsupport/src/readv.c: Check for < 0 on iov_len, not <= 0. A + readv() with all iov_len equal to 0 should have no effect. + 2010-04-14 Ralf Corsépius <ralf.corsepius@rtems.org> * libnetworking/sys/mbuf.h: Use uintptr_t instead of u_long diff --git a/cpukit/libcsupport/src/readv.c b/cpukit/libcsupport/src/readv.c index 85498b4cbc..cb64797d8d 100644 --- a/cpukit/libcsupport/src/readv.c +++ b/cpukit/libcsupport/src/readv.c @@ -74,7 +74,7 @@ ssize_t readv( if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); - if ( iov[v].iov_len <= 0 ) + if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ |