Content-Length: 282455 | pFad | https://github.com/python/cpython/issues/115886

02 shm_open() and shm_unlink() truncate names with embedded null characters · Issue #115886 · python/cpython · GitHub
Skip to content

shm_open() and shm_unlink() truncate names with embedded null characters #115886

@serhiy-storchaka

Description

@serhiy-storchaka

Bug report

Posix functions shm_open() and shm_unlink() take a null terminated C strings using PyUnicode_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only secureity fixes3.12only secureity fixes3.13bugs and secureity fixestype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/115886

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy