Skip to content

[3.15] gh-156939: Fix xmlcharrefreplace() buffer overflow (GH-157109) - #157232

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-9398655-3.15
Sep 11, 2026
Merged

[3.15] gh-156939: Fix xmlcharrefreplace() buffer overflow (GH-157109)#157232
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-9398655-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Write into a temporary buffer to not write the trailing NUL byte
into the writer. Previously, the NUL byte was written outsize
the writer buffer.
(cherry picked from commit 9398655)

Co-authored-by: Victor Stinner vstinner@python.org

…7109)

Write into a temporary buffer to not write the trailing NUL byte
into the writer. Previously, the NUL byte was written outsize
the writer buffer.
(cherry picked from commit 9398655)

Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hugovk
hugovk merged commit 0decd77 into python:3.15 Sep 11, 2026
59 checks passed
@miss-islington
miss-islington deleted the backport-9398655-3.15 branch September 11, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants