[issue37495] socket.inet_aton parsing issue on some libc versions
STINNER Victor
report at bugs.python.org
Fri Jul 5 09:06:01 EDT 2019
STINNER Victor <vstinner at redhat.com> added the comment:
Attached inet_aton_pton.py is a proof-of-concept which reimplements inet_aton() using inet_pton(). It supports a.b.c.d, a.b.c, a.b and a formats. I'm not sure which exception should be raised in case of parsing error.
socket.inet_aton() raises OSError"illegal IP address string passed to inet_aton") using C code:
PyErr_SetString(PyExc_OSError,
"illegal IP address string passed to inet_aton");
----------
Added file: https://bugs.python.org/file48457/inet_aton_pton.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37495>
_______________________________________
More information about the Python-bugs-list
mailing list