Issue #25388: Fixed tokenizer crash when processing undecodable sourc… · pythoncapi/cpython@7e2b870 · GitHub
Skip to content

Commit 7e2b870

Browse files
Issue python#25388: Fixed tokenizer crash when processing undecodable source code
with a null byte.
2 parents 2463001 + 0d44111 commit 7e2b870

3 files changed

Lines changed: 19 additions & 8 deletions

File tree

Lib/test/test_compile.py

Lines changed: 10 additions & 0 deletions

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Release date: TBA
1111
Core and Builtins
1212
-----------------
1313

14+
- Issue #25388: Fixed tokenizer crash when processing undecodable source code
15+
with a null byte.
16+
1417
- Issue #25462: The hash of the key now is calculated only once in most
1518
operations in C implementation of OrderedDict.
1619

Parser/tokenizer.c

Lines changed: 6 additions & 8 deletions

0 commit comments

Comments
 (0)