18 Jun
2023
18 Jun
'23
4:33 a.m.
On Fri Jun 16 17:31:21 2023 +0000, Zebediah Figura wrote:
Can the length be less than the whole size of sun_path? As always we should test for this. Windows 10 does not throw an error if the length is less than `sizeof(struct sockaddr_un)`; it successfully created a socket when I passed a length of `sizeof(addr.sun_family) + strlen(addr.sun_path) - 1` (minus), though the path was truncated by one character.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2786#note_36049