On 2013-12-16 14:29, Sebastian Huber wrote:
@@ -325,11 +330,11 @@ int doErrorTest(void)
/* writev -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SIZE_MAX;
+ vec[0].iov_len = INT_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SIZE_MAX;
+ vec[1].iov_len = INT_MAX;
vec[2].iov_base = vec;
- vec[2].iov_len = SIZE_MAX;
+ vec[2].iov_len = INT_MAX;
puts("writev iov_len total overflows -- EINVAL");
rc = writev(fd, vec, 3);
if ( (rc != -1) || (errno != EINVAL) ) {
@@ -340,11 +345,13 @@ int doErrorTest(void)
/* readv -- iov_len total overflows */
vec[0].iov_base = vec;
- vec[0].iov_len = SIZE_MAX;
+ vec[0].iov_len = INT_MAX;
vec[1].iov_base = vec;
- vec[1].iov_len = SIZE_MAX;
+ vec[1].iov_len = INT_MAX;
+ vec[2].iov_base = vec;
+ vec[2].iov_len = INT_MAX;
This SIZE_MAX to INT_MAX change is nonsense. I will omit this part.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel