[issue26803] syslog logging handler fails with address in unix abstract namespace

Xavier de Gaye report at bugs.python.org
Wed Apr 20 09:45:49 EDT 2016


Xavier de Gaye added the comment:

makesockaddr() in socketmodule.c calls PyBytes_FromStringAndSize() when the
first byte is a null byte.

My opinion is not worth much in this matter :). The socket documentation does
say that AF_UNIX addresses are "represented as a string, using the file system
encoding", so the implementation looks wrong. However it is possible that
PyUnicode_DecodeFSDefault() fails for some file system encodings when the
encoded address contains null bytes ?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26803>
_______________________________________


More information about the Python-bugs-list mailing list