[3.11] gh-96670: Raise SyntaxError when parsing NULL bytes (GH-97594) by lysnikolaou · Pull Request #104195 · python/cpython · GitHub

github.com

Tin mới

lysnikolaou:backport-aab01e3-3.11

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

mishandling of c-strings in parser #96670

Null characters in strings cause a C SystemError #97556

[3.11] gh-96670: Raise SyntaxError when parsing NULL bytes (GH-97594). (cherry picked from commit aab01e3524d966dca6e72c718a2c71403a14e47c) Co-authored-by: Pablo Galindo Salgado <[email protected]>

gh-96670: Raise SyntaxError when parsing NULL bytes #97594

awaiting core review

[3.11] Raise null bytes syntax error upon null in multiline string

gh-97556: Raise null bytes syntax error upon null in multiline string #104136

Handle SyntaxError which can be raised by cpython in 3.11.4+ (SYN-5563) vertexproject/synapse#3172

test: Adjust test_nul_bytes version check

Changes in Python 3.12 break tests PythonCharmers/python-future#618

test_check_nullbytes regressed on 3.11.4 PyCQA/pycodestyle#1151

Incorrect information about exception raised if source contains null bytes for ast.parse() and compile() #122461