]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] 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:47:26 +0000 (14:47 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 13:47:26 +0000 (14:47 +0100)
commita6f73f61147048187908299ae911c5ad498d813a
treec1865a66b767d5bf5ec0804150fdf2514f42896f
parent75da5067cf4aa6a1e5671d0533f15eebf41f14ba
[3.9] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-112600)

* 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