]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:47:00 +0000 (04:47 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Jun 2026 02:47:00 +0000 (03:47 +0100)
commit6a40e1c8d00882724f91a03348951d6b19e3ac37
tree91e1dafa258d174e0c7bde3da0c7fe6bd78c8914
parentb9ea60c38e66cb32aa567984ddc38e0b686f2f9c
[3.13] gh-150207: Raise MemoryError on tokenizer allocation failure instead of crashing (GH-150275) (#150998)

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