Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



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.




Home | Main Index | Thread Index | Old Index