]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:08 +0000 (19:55 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 18:55:08 +0000 (20:55 +0200)
commitfc7e67f51a264c081a83ece59eed08d08cd250de
tree6327aabf2f9afda19742a5a80f2ba95c372c24ba
parentbdad5c367f60d4939d6945f78d94608e4521009f
[3.12] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-112597)

* 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