Skip to content

[3.13] gh-157335: Fix out-of-bounds write in mmap.mmap.__setitem__ (#157438) - #158028

Merged
vstinner merged 2 commits into
python:3.13from
vstinner:mmap13
Sep 23, 2026
Merged

vstinner merged 2 commits into
python:3.13from
vstinner:mmap13

Conversation

@vstinner

@vstinner vstinner commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Fix out-of-bounds write in mmap.mmap.setitem() that could occur when converting the index or the assigned value (via index() for a single item, or via the buffer protocol for a slice) resized or closed the mmap object during the assignment.

(cherry picked from commit 09bf4c5)

…thon#157438)

Fix out-of-bounds write in mmap.mmap.__setitem__() that could occur
when converting the index or the assigned value (via __index__()
for a single item, or via the buffer protocol for a slice) resized or closed
the mmap object during the assignment.

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 09bf4c5)
@vstinner
vstinner merged commit edabbff into python:3.13 Sep 23, 2026
43 checks passed
@vstinner
vstinner deleted the mmap13 branch September 23, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants