]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 Dec 2023 18:55:27 +0000 (19:55 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 18:55:27 +0000 (20:55 +0200)
commit1cc594d571d8baf37726debd7d4162c51dd77ecc
tree98f61b3aaf82b2f26818ddfe31f31c6051f58227
parent1162d29f5bd3ac7f899768b82efe16c36f31b8ac
[3.11] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-112598)

* 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