cpython/Parser
Miss Islington (bot) 265bc19b84
[3.13] gh-126105: Fix crash in ast module, when ._fields is deleted (GH-126115) (#126130)
gh-126105: Fix crash in `ast` module, when `._fields` is deleted (GH-126115)

Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
(cherry picked from commit b2eaa75b17)

Co-authored-by: sobolevn <mail@sobolevn.me>
2024-10-29 16:07:32 +00:00
..
lexer [3.13] gh-123229: Fix valgrind warning by initializing the f-string buffers to 0 in the tokenizer (GH-123263) (#123264) 2024-08-23 12:59:54 +00:00
tokenizer GH-110749: fix unistd.h import in file_tokenizer.c (#110750) 2023-10-12 07:52:13 +02:00
action_helpers.c [3.13] gh-122300: Preserve AST nodes for format specifiers with single elements (GH-122308) (#122364) 2024-07-27 19:27:01 +00:00
asdl.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) 2021-04-02 12:53:46 +09:00
asdl_c.py [3.13] gh-126105: Fix crash in ast module, when ._fields is deleted (GH-126115) (#126130) 2024-10-29 16:07:32 +00:00
myreadline.c [3.13] gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (GH-123690) (#123798) 2024-09-06 22:55:42 +02:00
parser.c [3.13] gh-119724: Revert "bpo-45759: Better error messages for non-matching 'elif'/'else' statements (GH-29513)" (GH-119974) (GH-120013) 2024-06-04 08:36:16 +02:00
peg_api.c gh-110805: Allow the repl to show source code and complete tracebacks (#110775) 2023-10-13 09:25:37 +00:00
pegen.c [3.13] gh-122581: Avoid data races when collecting parser statistics (GH-122694) (#122733) 2024-08-07 18:29:03 +05:30
pegen.h [3.13] gh-119118: Fix performance regression in tokenize module (GH-119615) (#119682) 2024-05-28 22:47:45 +02:00
pegen_errors.c gh-115823: Calculate correctly error locations when dealing with implicit encodings (#115824) 2024-02-26 12:57:09 +00:00
Python.asdl gh-116126: Implement PEP 696 (#116129) 2024-05-03 06:17:32 -07:00
string_parser.c [3.13] gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204) (#124216) 2024-09-29 18:13:13 -07:00
string_parser.h gh-102856: Initial implementation of PEP 701 (#102855) 2023-04-19 11:18:16 -05:00
token.c gh-107015: Remove async_hacks from the tokenizer (#107018) 2023-07-26 16:34:15 +01:00