gh-74895: getaddrinfo no longer raises OverflowError by smejkar · Pull Request #2435 · python/cpython
Convert a numeric port number to a string without an intermediate C long. This prevents raising OverflowError if the port number is out of the C long range.
arhadthedev
changed the title
bpo-30710: getaddrinfo raises OverflowError
gh-74895: getaddrinfo raises OverflowError
smejkar
mannequin
mentioned this pull request
Also updates our canned getaddrinfo.c implementation to actually report an error for values outside of the u_short range it casts the value to instead of ignoring them.
gpshead
changed the title
gh-74895: getaddrinfo raises OverflowError
gh-74895: getaddrinfo no longer raises OverflowError
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters