]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98978: Fix Py_SetPythonHome(NULL) (#99066)
authorVictor Stinner <vstinner@python.org>
Thu, 3 Nov 2022 17:34:32 +0000 (18:34 +0100)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2022 17:34:32 +0000 (18:34 +0100)
commitb07f546ea3a574bc3016fb023c157c65a47f4849
treead8b3204cfe06def410652a96f2b93ae4a83eba2
parentef0e72b31d22f780d3a165d7d0471806061fe380
gh-98978: Fix Py_SetPythonHome(NULL) (#99066)

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

Issue reported by Benedikt Reinartz.
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