]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-105375: Improve error handling in _ctypes (GH-105593) (#105664)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Jun 2023 20:30:47 +0000 (13:30 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 20:30:47 +0000 (20:30 +0000)
commita03449374ebd5bffe54d3e09d36b54bc605551d8
tree91a46d7004b427a0aa901acf9d927f00fba43a7f
parent91877478ed68fd56934c699e03f81da9f4242d3c
[3.11] gh-105375: Improve error handling in _ctypes (GH-105593) (#105664)

Prevent repeated PyLong_FromVoidPtr() from possibly overwriting the
current exception.
(cherry picked from commit e8998e46a7ce8ad336e0941a6da6e50cb88d1e47)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Misc/NEWS.d/next/Library/2023-06-09-21-40-45.gh-issue-105375._sZilh.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c