gh-96670: Raise SyntaxError when parsing NULL bytes by pablogsal · Pull Request #97594 · python/cpython · GitHub

github.com

Tin mới

pablogsal:gh-96670

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

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

: Raise SyntaxError when parsing NULL bytes

View reviewed changes

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]>

[3.11] gh-96670: Raise SyntaxError when parsing NULL bytes (GH-97594) (#104195)

fix(imports): handle SyntaxError osprey-oss/deptry#426

Crash 2024.5.2 - docker home-assistant/core#117160

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

gh-122461: Document that compile() and ast.parse() raise SyntaxError for null bytes #122462