]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503)
authorZackery Spytz <zspytz@gmail.com>
Fri, 1 Dec 2023 15:16:49 +0000 (07:16 -0800)
committerGitHub <noreply@github.com>
Fri, 1 Dec 2023 15:16:49 +0000 (15:16 +0000)
commit0daf555c6fb3feba77989382135a58215e1d70a5
tree0b7b09098b294c8406796e3851afe0ac00655c0b
parent70a38ffb3d712f973eb17bd1bda541f238ae70d2
bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503)

* Fix a crash when pass UINT_MAX.
* Fix an integer overflow on 64-bit non-Windows platforms.
Lib/test/test_socket.py
Misc/NEWS.d/next/Library/2023-12-01-16-09-59.gh-issue-81194.FFad1c.rst [new file with mode: 0644]
Modules/socketmodule.c