René's URL Explorer Experiment


Title: gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin by pablogsal · Pull Request #94386 · python/cpython · GitHub

Open Graph Title: gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin by pablogsal · Pull Request #94386 · python/cpython

X Title: gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdin by pablogsal · Pull Request #94386 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Issue: Tokenizer crash when redirecting input to stdin  #94360 Closes: #94360

X Description: Issue: Tokenizer crash when redirecting input to stdin  #94360 Closes: #94360

Opengraph URL: https://github.com/python/cpython/pull/94386

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7917ce70-4fb0-b605-1be5-545750c75336
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD538:2D667A:858745:B6C040:6A554F00
html-safe-noncec5d412743d824b2febbf135a84c431066403ba44d84c80498ca06d99ecc8f440
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM4OjJENjY3QTo4NTg3NDU6QjZDMDQwOjZBNTU0RjAwIiwidmlzaXRvcl9pZCI6IjMzMTg3NDg3OTIyMDgzMTQxMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac83459e38831705bbf8e9ce05f6563e2acf6808725b9458e7e1913fffb0c12963
hovercard-subject-tagpull_request:981403337
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/94386/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c710a62fd8923b096ba24d9e1639103b3db59a1197dd24a4ebda00c178990444/python/cpython/pull/94386
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c710a62fd8923b096ba24d9e1639103b3db59a1197dd24a4ebda00c178990444/python/cpython/pull/94386
og:image:altIssue: Tokenizer crash when redirecting input to stdin  #94360 Closes: #94360
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepablogsal
hostnamegithub.com
expected-hostnamegithub.com
Nonecd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/94386#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F94386
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F94386
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/94386
Reloadhttps://github.com/python/cpython/pull/94386
Reloadhttps://github.com/python/cpython/pull/94386
Please reload this pagehttps://github.com/python/cpython/pull/94386
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/94386
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
pablogsal:gh-94360https://github.com/pablogsal/cpython/tree/gh-94360
Conversationhttps://github.com/python/cpython/pull/94386
Commits2 (2)https://github.com/python/cpython/pull/94386/commits
Checkshttps://github.com/python/cpython/pull/94386/checks
Files changedhttps://github.com/python/cpython/pull/94386/files
gh-94360: Fix a tokenizer crash when reading encoded files with syntax errors from stdinhttps://github.com/python/cpython/pull/94386#top
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
pablogsal:gh-94360https://github.com/pablogsal/cpython/tree/gh-94360
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 28, 2022https://github.com/python/cpython/pull/94386#issue-1287340932
Please reload this pagehttps://github.com/python/cpython/pull/94386
Tokenizer crash when redirecting input to stdin  #94360https://github.com/python/cpython/issues/94360
#94360https://github.com/python/cpython/issues/94360
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
lysnikolaouhttps://github.com/lysnikolaou
code ownerhttps://github.com/python/cpython/blob/44fa03d748eb2b9a13a77c6143b18968521a1980/.github/CODEOWNERS#L88
June 28, 2022 13:21https://github.com/python/cpython/pull/94386#event-6893973326
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Jun 28, 2022https://github.com/python/cpython/pull/94386#event-6893973390
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 28, 2022https://github.com/python/cpython/pull/94386#event-6893973777
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 28, 2022https://github.com/python/cpython/pull/94386#issuecomment-1168718873
Please reload this pagehttps://github.com/python/cpython/pull/94386
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
June 28, 2022 13:46https://github.com/python/cpython/pull/94386#event-6894210942
https://github.com/pablogsal
pythongh-94360https://github.com/python/cpython/issues/94360
: Fix a tokenizer crash when reading encoded files with…https://github.com/python/cpython/pull/94386/commits/a7cf92c4704f67fb5ce70533aebf6da137c26417
a7cf92chttps://github.com/python/cpython/pull/94386/commits/a7cf92c4704f67fb5ce70533aebf6da137c26417
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/646cbb82dcdaf5725b7c1b2980bf97b8120a6cca..a7cf92c4704f67fb5ce70533aebf6da137c26417
646cbb8https://github.com/python/cpython/commit/646cbb82dcdaf5725b7c1b2980bf97b8120a6cca
a7cf92chttps://github.com/python/cpython/commit/a7cf92c4704f67fb5ce70533aebf6da137c26417
Compare https://github.com/python/cpython/compare/646cbb82dcdaf5725b7c1b2980bf97b8120a6cca..a7cf92c4704f67fb5ce70533aebf6da137c26417
June 28, 2022 13:53https://github.com/python/cpython/pull/94386#event-6894270010
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
June 28, 2022 15:23https://github.com/python/cpython/pull/94386#event-6895072240
https://github.com/zware
zwarehttps://github.com/zware
Jun 28, 2022https://github.com/python/cpython/pull/94386#issuecomment-1168971567
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 28, 2022https://github.com/python/cpython/pull/94386#issuecomment-1168980581
@zwarehttps://github.com/zware
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/ambv
ambvhttps://github.com/ambv
Jul 5, 2022 https://github.com/python/cpython/pull/94386#pullrequestreview-1028845170
View reviewed changes https://github.com/python/cpython/pull/94386/files/a7cf92c4704f67fb5ce70533aebf6da137c26417
Parser/pegen_errors.chttps://github.com/python/cpython/pull/94386/files/a7cf92c4704f67fb5ce70533aebf6da137c26417#diff-f15d7b3d0bc84baf512dd165bea4e2e1dddb1fe33f836ee08b811621df3260cb
ambvhttps://github.com/ambv
Jul 5, 2022https://github.com/python/cpython/pull/94386#discussion_r913941631
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/94386
pablogsalhttps://github.com/pablogsal
Jul 5, 2022https://github.com/python/cpython/pull/94386#discussion_r913983074
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://user-images.githubusercontent.com/11718525/177373604-84b1bc62-3b2b-4c62-8004-e0e2d6e45653.jpg
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/ambv
ambvhttps://github.com/ambv
Jul 5, 2022 https://github.com/python/cpython/pull/94386#pullrequestreview-1028848828
View reviewed changes https://github.com/python/cpython/pull/94386/files/a7cf92c4704f67fb5ce70533aebf6da137c26417
Parser/tokenizer.chttps://github.com/python/cpython/pull/94386/files/a7cf92c4704f67fb5ce70533aebf6da137c26417#diff-51e9668dbe1e270b3575209bcfcce9d3701ee0a145bdf7cef866209d9819f2ed
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/ambv
nitty nithttps://github.com/python/cpython/pull/94386/commits/a22ae03afeaeafa7a37ac226e7bd666eb62708da
a22ae03https://github.com/python/cpython/pull/94386/commits/a22ae03afeaeafa7a37ac226e7bd666eb62708da
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
36fcde6https://github.com/python/cpython/commit/36fcde61ba48c4e918830691ecf4092e4e3b9b99
Jul 5, 2022https://github.com/python/cpython/pull/94386#event-6935952350
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
July 5, 2022 16:39https://github.com/python/cpython/pull/94386#event-6935952450
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Jul 5, 2022https://github.com/python/cpython/pull/94386#issuecomment-1175264031
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Jul 5, 2022https://github.com/python/cpython/pull/94386#event-6935952583
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jul 5, 2022https://github.com/python/cpython/pull/94386#issuecomment-1175264129
GH-94573https://github.com/python/cpython/pull/94573
3.11 branchhttps://github.com/python/cpython/tree/3.11
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Jul 5, 2022https://github.com/python/cpython/pull/94386#issuecomment-1175264130
@pablogsalhttps://github.com/pablogsal
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
pablogsalhttps://github.com/pablogsal
Jul 5, 2022https://github.com/python/cpython/pull/94386#event-6935953377
miss-islingtonhttps://github.com/miss-islington
Jul 5, 2022 https://github.com/python/cpython/pull/94386#ref-commit-2012ce5
https://github.com/pablogsal
https://github.com/miss-islington
pythongh-94360https://github.com/python/cpython/issues/94360
: Fix a tokenizer crash when reading encoded files with…https://github.com/miss-islington/cpython/commit/2012ce569e88cae024e0a4cba21394a0f7c3da0e
2012ce5https://github.com/miss-islington/cpython/commit/2012ce569e88cae024e0a4cba21394a0f7c3da0e
pythonGH-94386https://github.com/python/cpython/pull/94386
pythongh-94360https://github.com/python/cpython/issues/94360
36fcde6https://github.com/miss-islington/cpython/commit/36fcde61ba48c4e918830691ecf4092e4e3b9b99
miss-islingtonhttps://github.com/miss-islington
Jul 5, 2022 https://github.com/python/cpython/pull/94386#ref-commit-d49c99f
https://github.com/miss-islington
https://github.com/pablogsal
gh-94360https://github.com/python/cpython/issues/94360
: Fix a tokenizer crash when reading encoded files with synta…https://github.com/python/cpython/commit/d49c99f10d66e6c485bde7e35d79dea07f3c90eb
d49c99fhttps://github.com/python/cpython/commit/d49c99f10d66e6c485bde7e35d79dea07f3c90eb
GH-94386https://github.com/python/cpython/pull/94386
gh-94360https://github.com/python/cpython/issues/94360
36fcde6https://github.com/python/cpython/commit/36fcde61ba48c4e918830691ecf4092e4e3b9b99
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jul 5, 2022https://github.com/python/cpython/pull/94386#issuecomment-1175316657
GH-94574https://github.com/python/cpython/pull/94574
3.10 branchhttps://github.com/python/cpython/tree/3.10
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
Jul 5, 2022https://github.com/python/cpython/pull/94386#event-6936232514
pablogsalhttps://github.com/pablogsal
Jul 5, 2022 https://github.com/python/cpython/pull/94386#ref-commit-005fc4b
https://github.com/pablogsal
[3.10]https://github.com/pablogsal/cpython/commit/005fc4b5e0fea000d25dd217d6845271db21986f
pythongh-94360https://github.com/python/cpython/issues/94360
: Fix a tokenizer crash when reading encoded fil…https://github.com/pablogsal/cpython/commit/005fc4b5e0fea000d25dd217d6845271db21986f
005fc4bhttps://github.com/pablogsal/cpython/commit/005fc4b5e0fea000d25dd217d6845271db21986f
pythonGH-94386https://github.com/python/cpython/pull/94386
pythongh-94360https://github.com/python/cpython/issues/94360
36fcde6https://github.com/pablogsal/cpython/commit/36fcde61ba48c4e918830691ecf4092e4e3b9b99
ambvhttps://github.com/ambv
Jul 5, 2022 https://github.com/python/cpython/pull/94386#ref-commit-697e78c
https://github.com/pablogsal
[3.10]https://github.com/python/cpython/commit/697e78ca05ee989c383996a7fde2277fb2d2886f
gh-94360https://github.com/python/cpython/issues/94360
: Fix a tokenizer crash when reading encoded files wit…https://github.com/python/cpython/commit/697e78ca05ee989c383996a7fde2277fb2d2886f
697e78chttps://github.com/python/cpython/commit/697e78ca05ee989c383996a7fde2277fb2d2886f
GH-94386https://github.com/python/cpython/pull/94386
GH-94574https://github.com/python/cpython/pull/94574
36fcde6https://github.com/python/cpython/commit/36fcde61ba48c4e918830691ecf4092e4e3b9b99
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F94386
https://github.com/ambv
ambv https://github.com/ambv
https://github.com/python/cpython/pull/94386/files/a7cf92c4704f67fb5ce70533aebf6da137c26417
https://github.com/lysnikolaou
lysnikolaou https://github.com/lysnikolaou
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
Tokenizer crash when redirecting input to stdin https://github.com/python/cpython/issues/94360
Please reload this pagehttps://github.com/python/cpython/pull/94386
https://github.com/pablogsal
https://github.com/zware
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/ambv
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.