summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-07-28 19:47:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-07-28 19:47:15 +0000
commit3287b64e077693dbe8e5b8138453f03f4060e739 (patch)
tree76b77e1d456db5a77e92b64b2a16746f94ea8ab6 /etc
parent996b26293c9ed22d2a4601386081731cf9f5a238 (diff)
For read, write, send, sendto, recv, recvfrom return EINVAL is size arg > SSIZE_MAX. For readv, writev, sendmsg, recvmsg return EINVAL if sum of the over iov_len values overflows an ssize_t. Based on what XPG 4.2 says (though XPG is not entirely consistent here). Basically since the return value is ssize_t allowing size > SSIZE_MAX is bad since people who (incorrectly mind you) check the return value for < 0 instead of == -1 will have bad things happen to them.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions