mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user