René's URL Explorer Experiment


Title: bpo-40661: Fix segfault when parsing invalid input by lysnikolaou · Pull Request #20165 · python/cpython · GitHub

Open Graph Title: bpo-40661: Fix segfault when parsing invalid input by lysnikolaou · Pull Request #20165 · python/cpython

X Title: bpo-40661: Fix segfault when parsing invalid input by lysnikolaou · Pull Request #20165 · python/cpython

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

Open Graph Description: Fix segfaults when parsing very complex invalid input, like import äˆ ð£„¯ð¢·žð±‹á”€ð””ð‘©±å®ä±¬ð©¾\nð—¶½. Initially reported by @pablogsal. https://bugs.python.org/issue40661

X Description: Fix segfaults when parsing very complex invalid input, like import äˆ ð£„¯ð¢·žð±‹á”€ð””ð‘©±å®ä±¬ð©¾\nð—¶½. Initially reported by @pablogsal. https://bugs.python.org/issue40661

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

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:2355ff44-8ca8-ab1f-c7b4-658564a85c81
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B8C:29A67B:1BC1673:28A9B92:6A4E603D
html-safe-nonce02bb20af10696a2f3bb15e340ee96d74bf50f7248f862c4b1bb5ac0e7ec3d6a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjhDOjI5QTY3QjoxQkMxNjczOjI4QTlCOTI6NkE0RTYwM0QiLCJ2aXNpdG9yX2lkIjoiNjEwMDE3MTUzNzI0MjgwODM4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac078847f8a6ae21b85ada7d120b50a5a0f99825a5fceb4003e0f210ef4ef33c04
hovercard-subject-tagpull_request:419189049
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/20165/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/68d5c52f4fbb56a916ef2780bc37e9b55bf941c81642e3f1c56def562956bd9f/python/cpython/pull/20165
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/68d5c52f4fbb56a916ef2780bc37e9b55bf941c81642e3f1c56def562956bd9f/python/cpython/pull/20165
og:image:altFix segfaults when parsing very complex invalid input, like import äˆ ð£„¯ð¢·žð±‹á”€ð””ð‘©±å®ä±¬ð©¾\nð—¶½. Initially reported by @pablogsal. https://bugs.python.org/issue40661
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelysnikolaou
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
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
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20165#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20165
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%2F20165
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/20165
Reloadhttps://github.com/python/cpython/pull/20165
Reloadhttps://github.com/python/cpython/pull/20165
Please reload this pagehttps://github.com/python/cpython/pull/20165
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20165
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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:masterhttps://github.com/python/cpython/tree/master
lysnikolaou:fix-segfaulthttps://github.com/lysnikolaou/cpython/tree/fix-segfault
Conversationhttps://github.com/python/cpython/pull/20165
Commits4 (4)https://github.com/python/cpython/pull/20165/commits
Checkshttps://github.com/python/cpython/pull/20165/checks
Files changedhttps://github.com/python/cpython/pull/20165/files
bpo-40661: Fix segfault when parsing invalid inputhttps://github.com/python/cpython/pull/20165#top
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/cpython/tree/master
lysnikolaou:fix-segfaulthttps://github.com/lysnikolaou/cpython/tree/fix-segfault
https://github.com/lysnikolaou
lysnikolaouhttps://github.com/lysnikolaou
May 17, 2020https://github.com/python/cpython/pull/20165#issue-619818421
Please reload this pagehttps://github.com/python/cpython/pull/20165
@pablogsalhttps://github.com/pablogsal
https://bugs.python.org/issue40661https://bugs.python.org/issue40661
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/lysnikolaou
bpo-40661: Fix segfault when parsing invalid inputhttps://github.com/python/cpython/pull/20165/commits/a1a9d28c87e57b36550707bb4a0a1c9b14b7d2a8
a1a9d28https://github.com/python/cpython/pull/20165/commits/a1a9d28c87e57b36550707bb4a0a1c9b14b7d2a8
@pablogsalhttps://github.com/pablogsal
https://github.com/lysnikolaou
lysnikolaouhttps://github.com/lysnikolaou
pablogsalhttps://github.com/pablogsal
code ownerhttps://github.com/python/cpython/blob/65460565df99fbda6a74b6bb4bf99affaaf8bd95/.github/CODEOWNERS#L77
May 17, 2020 23:11https://github.com/python/cpython/pull/20165#event-3345030518
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
May 17, 2020https://github.com/python/cpython/pull/20165#event-3345030574
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 17, 2020https://github.com/python/cpython/pull/20165#event-3345030597
https://github.com/lysnikolaou
lysnikolaouhttps://github.com/lysnikolaou
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
May 17, 2020https://github.com/python/cpython/pull/20165#event-3345030668
https://github.com/lysnikolaou
Check for errors at the beginning of each rule as wellhttps://github.com/python/cpython/pull/20165/commits/9ec03ba35b77c493717000a0c98f9034e932c8b5
9ec03bahttps://github.com/python/cpython/pull/20165/commits/9ec03ba35b77c493717000a0c98f9034e932c8b5
https://github.com/aeros
aeroshttps://github.com/aeros
May 18, 2020 https://github.com/python/cpython/pull/20165#pullrequestreview-413249428
View reviewed changes https://github.com/python/cpython/pull/20165/files/9ec03ba35b77c493717000a0c98f9034e932c8b5
aeroshttps://github.com/aeros
https://github.com/python/cpython/pull/20165#pullrequestreview-413249428
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/lysnikolaou
lysnikolaouhttps://github.com/lysnikolaou
May 18, 2020https://github.com/python/cpython/pull/20165#issuecomment-630101025
Please reload this pagehttps://github.com/python/cpython/pull/20165
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
May 18, 2020 https://github.com/python/cpython/pull/20165#pullrequestreview-413744044
View reviewed changes https://github.com/python/cpython/pull/20165/files/9ec03ba35b77c493717000a0c98f9034e932c8b5
Lib/test/test_peg_parser.pyhttps://github.com/python/cpython/pull/20165/files/9ec03ba35b77c493717000a0c98f9034e932c8b5#diff-b4742078902e5529ce00c5ed4dd20104c50b8ad61a04eaa078db9851db07b6e3
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 18, 2020https://github.com/python/cpython/pull/20165#event-3348097328
https://github.com/gvanrossum
Update Lib/test/test_peg_parser.pyhttps://github.com/python/cpython/pull/20165/commits/b7be72c4dbbb0eb54a0d666ee143ca242a5185e1
b7be72chttps://github.com/python/cpython/pull/20165/commits/b7be72c4dbbb0eb54a0d666ee143ca242a5185e1
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
May 18, 2020https://github.com/python/cpython/pull/20165#issuecomment-630294879
@aeroshttps://github.com/aeros
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
May 18, 2020https://github.com/python/cpython/pull/20165#issuecomment-630309178
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/python/cpython/blob/master/Parser/pegen/pegen.c#L90-L105https://github.com/python/cpython/blob/master/Parser/pegen/pegen.c#L90-L105
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
May 18, 2020 https://github.com/python/cpython/pull/20165#pullrequestreview-413775587
View reviewed changes https://github.com/python/cpython/pull/20165/files/b7be72c4dbbb0eb54a0d666ee143ca242a5185e1
Lib/test/test_peg_parser.pyhttps://github.com/python/cpython/pull/20165/files/b7be72c4dbbb0eb54a0d666ee143ca242a5185e1#diff-b4742078902e5529ce00c5ed4dd20104c50b8ad61a04eaa078db9851db07b6e3
pablogsalhttps://github.com/pablogsal
May 18, 2020https://github.com/python/cpython/pull/20165#discussion_r426767366
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/20165
pablogsalhttps://github.com/pablogsal
May 18, 2020https://github.com/python/cpython/pull/20165#discussion_r426769075
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/pablogsal
Add test also to test_syntaxhttps://github.com/python/cpython/pull/20165/commits/7353b6ce24e2536641f4add9a0ed08bc7e6b6e7d
7353b6chttps://github.com/python/cpython/pull/20165/commits/7353b6ce24e2536641f4add9a0ed08bc7e6b6e7d
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
May 18, 2020 https://github.com/python/cpython/pull/20165#pullrequestreview-413800123
View reviewed changes https://github.com/python/cpython/pull/20165/files/7353b6ce24e2536641f4add9a0ed08bc7e6b6e7d
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
7b7a21bhttps://github.com/python/cpython/commit/7b7a21bc4fd063b26a2d1882fddc458861497812
May 18, 2020https://github.com/python/cpython/pull/20165#event-3348386693
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 18, 2020https://github.com/python/cpython/pull/20165#event-3348386853
https://github.com/lysnikolaou
lysnikolaouhttps://github.com/lysnikolaou
May 18, 2020 17:33https://github.com/python/cpython/pull/20165#event-3348390413
arturoescaiphttps://github.com/arturoescaip
May 24, 2020 https://github.com/python/cpython/pull/20165#ref-commit-2d6bc90
https://github.com/lysnikolaou
https://github.com/gvanrossum
https://github.com/pablogsal
https://github.com/arturoescaip
bpo-40661: Fix segfault when parsing invalid input (https://github.com/arturoescaip/cpython/commit/2d6bc90ff4161d7eab910e6ce4ab826b44068550
pythonGH-20165https://github.com/python/cpython/pull/20165
)https://github.com/arturoescaip/cpython/commit/2d6bc90ff4161d7eab910e6ce4ab826b44068550
2d6bc90https://github.com/arturoescaip/cpython/commit/2d6bc90ff4161d7eab910e6ce4ab826b44068550
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%2F20165
https://github.com/gvanrossum
gvanrossum https://github.com/gvanrossum
https://github.com/python/cpython/pull/20165/files/9ec03ba35b77c493717000a0c98f9034e932c8b5
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
https://github.com/python/cpython/pull/20165/files/7353b6ce24e2536641f4add9a0ed08bc7e6b6e7d
https://github.com/aeros
aeros https://github.com/aeros
https://github.com/python/cpython/pull/20165/files/9ec03ba35b77c493717000a0c98f9034e932c8b5
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/20165
https://github.com/lysnikolaou
https://github.com/gvanrossum
https://github.com/pablogsal
https://github.com/aeros
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
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.