-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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-115886: Handle embedded null characters in shared memory name #115887
gh-115886: Handle embedded null characters in shared memory name #115887
Conversation
shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it.
I first thought, "why not just use the Footnotes
|
We need the original object for error. I am going to change this code, add support of bytes and use filesystem encoding, but only in main. |
Ah, yes I see :( |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to
|
…ory name (pythonGH-115887) shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it. (cherry picked from commit 79811ed) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-115906 is a backport of this pull request to the 3.12 branch. |
…ory name (pythonGH-115887) shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it. (cherry picked from commit 79811ed) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-115907 is a backport of this pull request to the 3.11 branch. |
pythonGH-115887) shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it.
pythonGH-115887) shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it.
shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it.