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

> inet_aton accepts trailing characterrs after a valid IP (
https://bugzilla.redhat.com/show_bug.cgi?id=1347549).

There is a little bit of confusion between getaddrinfo() and inet_aton() here 
(https://bugzilla.redhat.com/show_bug.cgi?id=1347549 is about getaddrinfo()). 
getaddrinfo() has been fixed:
https://sourceware.org/bugzilla/show_bug.cgi?id=20018

But glibc devs don't want to fix inet_aton() to keep the backward compatibility 
("for historic reasons"): more info in bpo-37495 "socket.inet_aton parsing 
issue on some libc versions".

This issue is about ssl.match_hostname() which uses internally 
socket.inet_aton(). ssl.match_hostname() has been fixed to implement further 
checks to workaround inet_aton() behavior (ignore extra string after a 
whitespace).

I also removed inet_aton() from the title of this issue to reduce confusion ;-)

----------

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

Reply via email to