[issue44493] Missing terminated NUL in the length of sockaddr_un

Serhiy Storchaka report at bugs.python.org
Thu Mar 24 12:29:53 EDT 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I am not the socket programming expert. It just happened that I fixed some bugs here. But according to the manpage https://man7.org/linux/man-pages/man7/unix.7.html the address length should include the terminating NUL: offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1. So the fix is correct.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44493>
_______________________________________


More information about the Python-bugs-list mailing list