Skip to content

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

Closed

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

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    3.11only security fixes
    3.12only security fixes
    3.13only security fixes
    on Feb 24, 2024
  2. added 4 commits that reference this issue on Feb 24, 2024
  3. added 2 commits that reference this issue on Feb 25, 2024
  4. added a commit that references this issue on Mar 4, 2024
  5. added a commit that references this issue on Apr 17, 2024
  6. added a commit that references this issue on Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13only security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions