fix undefined pointer arithmetic in CMSG_NXTHDR macro
previously, the only way the stopping condition could be met with correct lengths in the headers invoked undefined behavior, adding sizeof(struct cmsghdr) beyond the end of the cmsg buffer. instead, compute and compare sizes rather than pointers.
Showing
想要评论请 注册 或 登录