]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] 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:44:07 +0000 (14:44 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 13:44:07 +0000 (14:44 +0100)
commit2e1156c562ad09f83596dc234e7ca9e8f938bf93
treeee4c3ae2bb4543927202515b2a7e2c1291b8eee0
parent0df2eb5b267fb56d93faf561024548a8816a0269
[3.8] bpo-37013: Fix the error handling in socket.if_indextoname() (GH-13503) (GH-113474)

* 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