]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-122334: Fix crash when importing ssl after re-initialization (GH-122481...
authorneonene <53406459+neonene@users.noreply.github.com>
Fri, 2 Aug 2024 13:44:55 +0000 (22:44 +0900)
committerGitHub <noreply@github.com>
Fri, 2 Aug 2024 13:44:55 +0000 (13:44 +0000)
commit6b8a9a10617817180f546e537d1b4407625390b9
treece6f90a594fdb0195f56b8197a3d6e9358f34f0d
parent372df1950817dfcf8b9bac099448934bf8657cf5
[3.12] gh-122334: Fix crash when importing ssl after re-initialization (GH-122481) (#122495)

Fix crash when importing ssl after re-initialization

The current METH_FASTCALL|METH_KEYWORDS functions in a non-builtin module can cause segfaults after restarting the main interpreter, invoking _PyArg_UnpackKeywords() with an insufficiently cleared _PyArg_Parser struct.

This patch fixes the invalidation of the static argument parsers.
Lib/test/test_embed.py
Misc/NEWS.d/next/Library/2024-07-30-21-29-30.gh-issue-122334.LeoE1x.rst [new file with mode: 0644]
Python/getargs.c