diff options
author | Victor Stinner <vstinner@python.org> | 2022-11-03 17:34:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 17:34:32 (GMT) |
commit | b07f546ea3a574bc3016fb023c157c65a47f4849 (patch) | |
tree | ad8b3204cfe06def410652a96f2b93ae4a83eba2 /Misc | |
parent | ef0e72b31d22f780d3a165d7d0471806061fe380 (diff) | |
download | cpython-b07f546ea3a574bc3016fb023c157c65a47f4849.zip cpython-b07f546ea3a574bc3016fb023c157c65a47f4849.tar.gz cpython-b07f546ea3a574bc3016fb023c157c65a47f4849.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2022-11-03-17-46-41.gh-issue-98978.KJjBvv.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-11-03-17-46-41.gh-issue-98978.KJjBvv.rst b/Misc/NEWS.d/next/C API/2022-11-03-17-46-41.gh-issue-98978.KJjBvv.rst new file mode 100644 index 0000000..b967272 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2022-11-03-17-46-41.gh-issue-98978.KJjBvv.rst @@ -0,0 +1,3 @@ +Fix use-after-free in ``Py_SetPythonHome(NULL)``, +``Py_SetProgramName(NULL)`` and ``_Py_SetProgramFullPath(NULL)`` function +calls. Issue reported by Benedikt Reinartz. Patch by Victor Stinner. |