K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-06T23:01:29.667233Z K 7 svn:log V 411 MFC r267947: Check lower bound of cmsg_len. If passed cm->cmsg_len was below cmsghdr size the experssion: datalen = (caddr_t)cm + cm->cmsg_len - (caddr_t)data; would give negative result. However, in practice it would not result in a crash because the kernel would try to obtain garbage fds for given process and would error out with EBADF. PR: 124908 Submitted by: campbell mumble.net (modified a little) END