Skip to content

gh-159739: Preserve the normalization buffer on allocation failure - #159755

Open
jelle-openai wants to merge 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-unicodedata-buffer
Open

jelle-openai wants to merge 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-unicodedata-buffer

Conversation

@jelle-openai

@jelle-openai jelle-openai commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Save the original buffer before calling PyMem_Resize(), which overwrites
its first argument even on failure.

Save the original buffer before calling PyMem_Resize(), which overwrites
its first argument even on failure.

Backport to 3.15 and 3.14; the affected allocation spans multiple lines
on those branches.
@JelleZijlstra JelleZijlstra added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants