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.
This commit is contained in:
Joel Sherrill
2010-04-25 19:50:05 +00:00
parent 2cc30e90c2
commit 124800adcd
2 changed files with 6 additions and 1 deletions

View File

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

View File

@@ -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 */