]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 17 Jan 2024 13:49:40 +0000 (14:49 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 13:49:40 +0000 (14:49 +0100)
commit32e7acdc05a3adb9a32c65242c63eb456696dfb6
tree7d30085ebd8434f4ca67f92adf8b0144362d4329
parentb6535ea7ecf40c51a9a13089d961c29abeaffa5e
[3.10] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-112599)

* Fix a crash when pass UINT_MAX.
* Fix an integer overflow on 64-bit non-Windows platforms.
(cherry picked from commit 0daf555c6fb3feba77989382135a58215e1d70a5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
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