GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — shm_open() and shm_unlink() truncate names with embedded null characters · Issue #115886 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
shm_open() and shm_unlink() truncate names with embedded null characters#115886
Copy link
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@serhiy-storchaka
serhiy-storchaka
opened on Feb 24, 2024
Issue body actions

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

  • gh-115886: Handle embedded null characters in shared memory name #115887
  • [3.12] gh-115886: Handle embedded null characters in shared memory name (GH-115887) #115906
  • [3.11] gh-115886: Handle embedded null characters in shared memory name (GH-115887) #115907
Reacted by Gregory P. Smith

Activity

  1. serhiy-storchaka
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    3.11only security fixesonly security fixes
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    on Feb 24, 2024
  2. serhiy-storchaka
    added this to Multiprocessing issueson Feb 24, 2024
  3. serhiy-storchaka
    added 4 commits that reference this issue on Feb 24, 2024

    pythongh-115886: Handle embedded null characters in shared memory name

    bd2d530

    gh-115886: Handle embedded null characters in shared memory name (GH-…

    79811ed

    [3.12] pythongh-115886: Handle embedded null characters in shared mem…

    7561f86

    [3.11] pythongh-115886: Handle embedded null characters in shared mem…

    78d6970
  4. serhiy-storchaka
    closed this as completedon Feb 25, 2024
  5. github-project-automation
    moved this to Done in Multiprocessing issueson Feb 25, 2024
  6. serhiy-storchaka
    added 2 commits that reference this issue on Feb 25, 2024

    [3.12] gh-115886: Handle embedded null characters in shared memory na…

    116375e

    [3.11] gh-115886: Handle embedded null characters in shared memory na…

    f2b1f6b
  7. woodruffw
    added a commit that references this issue on Mar 4, 2024

    pythongh-115886: Handle embedded null characters in shared memory name (

    7f5bc6d
  8. diegorusso
    added a commit that references this issue on Apr 17, 2024

    pythongh-115886: Handle embedded null characters in shared memory name (

    9090686
  9. LukasWoodtli
    added a commit that references this issue on Jan 22, 2025

    pythongh-115886: Handle embedded null characters in shared memory name (

    f65eeb9
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 fixesonly security fixes3.12only security fixesonly security fixes3.13only security fixesonly security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • Multiprocessing issues
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.