STINNER Victor <vstin...@redhat.com> added the comment:

January 2019, Florian Weimer created the issue "Deprecate inet_addr, inet_aton" 
in glibc:
https://sourceware.org/bugzilla/show_bug.cgi?id=24111

inet_aton() ignores extra string "for historic reasons". More info at:
https://sourceware.org/bugzilla/show_bug.cgi?id=20018#c0

"For historic reasons, inet_addr and inet_aton accept trailing garbage.  Some 
parsers rely on this (for example, libresolv when it parses “nameserver” 
directives in /etc/resolv.conf)."

--

To clarify the complex situation: glibc getaddrinfo() has been fixed in glibc 
to ignore extra string, but not inet_aton(). getaddrinfo() fix:

* https://sourceware.org/bugzilla/show_bug.cgi?id=20018
* https://bugzilla.redhat.com/show_bug.cgi?id=1347549

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37495>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to