Re: [hurd, commited] socket: Fix tst-cmsghdr-skeleton.c use of cmsg_len

2023-05-01 Thread Samuel Thibault
Andreas Schwab, le lun. 01 mai 2023 16:03:32 +0200, a ecrit: > On Mai 01 2023, Samuel Thibault wrote: > > > Andreas Schwab, le lun. 01 mai 2023 15:38:45 +0200, a ecrit: > >> On Mai 01 2023, Samuel Thibault wrote: > >> > >> > cmsg_len is supposed to be socklen_t according to standards, but it was

Re: [hurd, commited] socket: Fix tst-cmsghdr-skeleton.c use of cmsg_len

2023-05-01 Thread Andreas Schwab
On Mai 01 2023, Samuel Thibault wrote: > Andreas Schwab, le lun. 01 mai 2023 15:38:45 +0200, a ecrit: >> On Mai 01 2023, Samuel Thibault wrote: >> >> > 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 soc

Re: [hurd, commited] socket: Fix tst-cmsghdr-skeleton.c use of cmsg_len

2023-05-01 Thread Samuel Thibault
Andreas Schwab, le lun. 01 mai 2023 15:38:45 +0200, a ecrit: > On Mai 01 2023, Samuel Thibault wrote: > > > 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 ex

Re: [hurd, commited] socket: Fix tst-cmsghdr-skeleton.c use of cmsg_len

2023-05-01 Thread Andreas Schwab
On Mai 01 2023, Samuel Thibault wrote: > 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