-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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-127208: Reject null character in _imp.create_dynamic() #127400
Conversation
_imp.create_dynamic() now rejects embedded null characters in the path and in the module name.
According to the issue, it fails on 3.12 so does it require a 3.12 bp as well? (I don't have the code in front of me) |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…onGH-127400) _imp.create_dynamic() now rejects embedded null characters in the path and in the module name. (cherry picked from commit b14fdad) Co-authored-by: Victor Stinner <[email protected]>
GH-127418 is a backport of this pull request to the 3.13 branch. |
GH-127419 is a backport of this pull request to the 3.12 branch. |
Hum, I changed my mind and backported the _PyUnicode_AsUTF8NoNUL() function instead :-) I created #127419 backport for 3.12. |
_imp.create_dynamic() now rejects embedded null characters in the path and in the module name.
ExtensionFileLoader.load_module
aborts when initialized with a path containing null-bytes #127208