Skip to content

[3.14] gh-159739: Preserve the normalization buffer on allocation failure (GH-159755) - #159933

Merged
JelleZijlstra merged 1 commit into
python:3.14from
jelle-openai:jelle/codex/gh-159739-3.14-unicode-normalization
Oct 20, 2026
Merged

JelleZijlstra merged 1 commit into
python:3.14from
jelle-openai:jelle/codex/gh-159739-3.14-unicode-normalization

Conversation

@jelle-openai

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

Copy link
Copy Markdown
Contributor

Backport GH-159755 to Python 3.14.

…on failure (pythonGH-159755)

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

(cherry picked from commit c38d75c)
@JelleZijlstra
JelleZijlstra enabled auto-merge (squash) October 20, 2026 18:16
@JelleZijlstra
JelleZijlstra merged commit 4147bcc into python:3.14 Oct 20, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants