Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: The Source of All Evil <source@NetBSD.ORG>
List: source-changes
Date: 08/03/1998 08:20:01
kleink
Mon Aug  3 08:15:58 PDT 1998
Update of /cvsroot/src/sys/compat/common
In directory nb00:/tmp/cvs-serv15261/compat/common

Modified Files:
	uipc_syscalls_43.c 
Log Message:
Fix two off-by-one bugs, both present in each recvmsg(2) and sendmsg(2):
* the first one would cause an unnecessary malloc() of iovec storage for
  a msg_iovlen of UIO_SMALLIOV although the required amount of memory has
  been allocated on the stack.
* the second one would cause a recvmsg() or sendmsg() with a msg_iovlen of
  UIO_MAXIOV to fail with EMSGSIZE, which is also a violation of XNS5.


kleink
Mon Aug  3 08:15:58 PDT 1998
Update of /cvsroot/src/sys/kern
In directory nb00:/tmp/cvs-serv15261/kern

Modified Files:
	uipc_syscalls.c 
Log Message:
Fix two off-by-one bugs, both present in each recvmsg(2) and sendmsg(2):
* the first one would cause an unnecessary malloc() of iovec storage for
  a msg_iovlen of UIO_SMALLIOV although the required amount of memory has
  been allocated on the stack.
* the second one would cause a recvmsg() or sendmsg() with a msg_iovlen of
  UIO_MAXIOV to fail with EMSGSIZE, which is also a violation of XNS5.