-
-
Notifications
You must be signed in to change notification settings - Fork 32k
shm_open() and shm_unlink() truncate names with embedded null characters #115886
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
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 24, 2024
shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it.
serhiy-storchaka
added a commit
that referenced
this issue
Feb 25, 2024
…115887) shm_open() and shm_unlink() now check for embedded null characters in the name and raise an error instead of silently truncating it.
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 25, 2024
…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>
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 25, 2024
…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>
serhiy-storchaka
added a commit
that referenced
this issue
Feb 25, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Feb 25, 2024
woodruffw
pushed a commit
to woodruffw-forks/cpython
that referenced
this issue
Mar 4, 2024
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.
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
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.
LukasWoodtli
pushed a commit
to LukasWoodtli/cpython
that referenced
this issue
Jan 22, 2025
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Posix functions
shm_open()
andshm_unlink()
take a null terminated C strings usingPyUnicode_AsUTF8AndSize(path, NULL)
which returns a pointer to char buffer which can include embedded null characters. When interpreted as C strings they are terminated at embedded null characters.Linked PRs
The text was updated successfully, but these errors were encountered: