This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author smejkar
Recipients smejkar
Date 2017-06-20.13:26:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Some getaddrinfo implementations do not detect invalid numeric services and blindly pass the port number to htons(). For example, service "960179" is returned as port 42675.


AIX 7.1 libc


On the other hand, for example, OpenBSD and musl check the port range

Modules/getaddrinfo should be fixed.

The configure script should detect whether the system getaddrinfo is broken. If so, a wrapper that checks numeric services, and returns EAI_SERVICE or calls the system getaddrinfo should be used in place of the system getaddrinfo.
Date User Action Args
2017-06-20 13:26:15smejkarsetrecipients: + smejkar
2017-06-20 13:26:15smejkarsetmessageid: <>
2017-06-20 13:26:15smejkarlinkissue30711 messages
2017-06-20 13:26:15smejkarcreate