X Tutup
The Wayback Machine - https://web.archive.org/web/20221223145512/https://github.com/python/cpython/pull/99066
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-98978: Fix Py_SetPythonHome(NULL) #99066

Merged
merged 1 commit into from Nov 3, 2022
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 3, 2022

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

Issue reported by Benedikt Reinartz.

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

Issue reported by Benedikt Reinartz.
@vstinner
Copy link
Member Author

vstinner commented Nov 3, 2022

cc @filmor

@vstinner vstinner merged commit b07f546 into python:main Nov 3, 2022
15 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Nov 3, 2022

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖 I'm not a witch! I'm not a witch!

@vstinner vstinner deleted the pathconfig branch Nov 3, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 3, 2022
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 b07f546)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-bot
Copy link

bedevere-bot commented Nov 3, 2022

GH-99068 is a backport of this pull request to the 3.11 branch.

miss-islington added a commit that referenced this pull request Nov 3, 2022
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 b07f546)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants
X Tutup