]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98978: Fix Py_SetPythonHome(NULL) (GH-99066)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Nov 2022 18:09:15 +0000 (11:09 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2022 18:09:15 +0000 (11:09 -0700)
commit41a9f49bc5d52b44386fe44ed6a1983bd2cd65cc
treefc4a6c434c52661d35122967d6208adcc3fea659
parenteb023a84d92661bcde9dfe1641576774710f6c64
gh-98978: Fix Py_SetPythonHome(NULL) (GH-99066)

Fix use-after-free in Py_SetPythonHome(NULL), Py_SetProgramName(NULL)
and _Py_SetProgramFullPath(NULL) function calls.

Issue reported by Benedikt Reinartz.
(cherry picked from commit b07f546ea3a574bc3016fb023c157c65a47f4849)

Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/C API/2022-11-03-17-46-41.gh-issue-98978.KJjBvv.rst [new file with mode: 0644]
Python/pathconfig.c