| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2025-01-12 | socket/tst-cmsghdr: Fix alignment of cmsghdr | Samuel Thibault | 1 | -2/+2 | |
| The computation was correct on Linux only by luck because the cmsghdr size is already aligned there. | |||||
| 2025-01-01 | Update copyright dates with scripts/update-copyrights | Paul Eggert | 1 | -1/+1 | |
| 2024-01-01 | Update copyright dates with scripts/update-copyrights | Paul Eggert | 1 | -1/+1 | |
| 2023-05-01 | socket: Fix tst-cmsghdr-skeleton.c use of cmsg_len | Samuel Thibault | 1 | -1/+1 | |
| cmsg_len is supposed to be socklen_t according to standards, but it was made size_t on Linux, see BZ 16919. For ports that have it socklen_t, SIZE_MAX is too large. We can however explicitly cast it to the type of cmsg_len so it will fit according to that type. | |||||
| 2023-01-06 | Update copyright dates with scripts/update-copyrights | Joseph Myers | 1 | -1/+1 | |
| 2022-08-02 | socket: Check lengths before advancing pointer in CMSG_NXTHDR | Arjun Shankar | 1 | -0/+92 | |
| The inline and library functions that the CMSG_NXTHDR macro may expand to increment the pointer to the header before checking the stride of the increment against available space. Since C only allows incrementing pointers to one past the end of an array, the increment must be done after a length check. This commit fixes that and includes a regression test for CMSG_FIRSTHDR and CMSG_NXTHDR. The Linux, Hurd, and generic headers are all changed. Tested on Linux on armv7hl, i686, x86_64, aarch64, ppc64le, and s390x. [BZ #28846] Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org> | |||||
