]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashi...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Jun 2026 02:46:55 +0000 (04:46 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Jun 2026 02:46:55 +0000 (03:46 +0100)
commit934ae3ed153bc01ac44d43c5ad0fc3e01027f98f
treea82f9b3cd68f0668bfbab5973a29f65ea04e68ba
parent4a3d6f9793fe7bfab3576f08a722c5003fb8b89e
[3.15] gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashing (GH-150275) (#150996)

gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashing (GH-150275)
(cherry picked from commit 262625fa30e5a1b5cf33c9dbce5d2b713093c7be)

Co-authored-by: Grant Herman <grantlouisherman041@gmail.com>
Misc/NEWS.d/next/Core_and_Builtins/2026-05-22-21-52-38.gh-issue-150207.l2BUtI.rst [new file with mode: 0644]
Parser/lexer/state.c
Parser/tokenizer/file_tokenizer.c
Parser/tokenizer/helpers.c
Parser/tokenizer/readline_tokenizer.c