ty <zonyi...@gmail.com> added the comment:
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) ---------- versions: -Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44493> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com