[Bug 1071] New: CMSG_NXTHDR truncated in socket.h
[email protected] Tue, 30 Aug 2005 23:51:37 -0400
| Newsgroups | gmane.linux.lsb.specification |
|---|---|
| Message-ID | <[email protected]> |
OtherBugsDependingO 866
nThis:
The database has a field length limit on the value of a #define of 255
characters, which ended up truncating the entry for CMSG_NXTHDR in socket.h.
The correct value was described in an attachment to bug 673, and is reproduced here:
#define CMSG_NXTHDR(mhdr, cmsg) \
(((cmsg) == NULL) ? CMSG_FIRSTHDR(mhdr) : \
(((u_char *)(cmsg) + CMSG_ALIGN((cmsg)->cmsg_len) \
+ CMSG_ALIGN(sizeof(struct cmsghdr)) > \
(u_char *)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
(struct cmsghdr *)NULL : \
(struct cmsghdr *)((u_char *)(cmsg) + CMSG_ALIGN((cmsg)->cmsg_len))))
Affects lsb-build headers as well.
--
Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.