Message415943
I think I have already provided enough information about this bug.
The `len_ret` was the length of `sockaddr_un`, which should include the terminated NUL in the `sun_path`. But the original implementation only use `path.len + offsetof(struct sockaddr_un, sun_path)`.
References:
1. https://man7.org/linux/man-pages/man7/unix.7.html The Address format section.
2. The `SUN_LEN` macro in *BSD systems, https://man.cx/unix(4) |
|
Date |
User |
Action |
Args |
2022-03-24 14:50:33 | zonyitoo | set | recipients:
+ zonyitoo, habnabit |
2022-03-24 14:50:33 | zonyitoo | set | messageid: <1648133433.48.0.516500161667.issue44493@roundup.psfhosted.org> |
2022-03-24 14:50:33 | zonyitoo | link | issue44493 messages |
2022-03-24 14:50:33 | zonyitoo | create | |
|