René's URL Explorer Experiment


Title: gh-146169: correctly handle re-entrant parsing calls in Expat handlers by picnixz · Pull Request #146566 · python/cpython · GitHub

Open Graph Title: gh-146169: correctly handle re-entrant parsing calls in Expat handlers by picnixz · Pull Request #146566 · python/cpython

X Title: gh-146169: correctly handle re-entrant parsing calls in Expat handlers by picnixz · Pull Request #146566 · python/cpython

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

Open Graph Description: Issue: Segfault/UB from expat when re-entering the XML Parser #146169

X Description: Issue: Segfault/UB from expat when re-entering the XML Parser #146169

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

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:1e920dd6-c999-6f85-e41e-0ec6527d7a9b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7E0:13B2CF:381C76:4B1346:6A51C0C1
html-safe-nonce07d258cc0472430be208d3e266fa64a07a45604931a03032cb45c593475a9fc2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0UwOjEzQjJDRjozODFDNzY6NEIxMzQ2OjZBNTFDMEMxIiwidmlzaXRvcl9pZCI6IjkxMDQ3MzgwNjI2MDExNDI0NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb020f4cc21bb53293af6103b08f9279529286a7dbf36a6cb4f5bb3e8ebe2466c
hovercard-subject-tagpull_request:3460500090
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/146566/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a0aa4596c9efe0160f7848300781caf97bac1ef655daba06390bf49184cde326/python/cpython/pull/146566
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a0aa4596c9efe0160f7848300781caf97bac1ef655daba06390bf49184cde326/python/cpython/pull/146566
og:image:altIssue: Segfault/UB from expat when re-entering the XML Parser #146169
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/146566#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146566
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%2F146566
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/146566
Reloadhttps://github.com/python/cpython/pull/146566
Reloadhttps://github.com/python/cpython/pull/146566
Please reload this pagehttps://github.com/python/cpython/pull/146566
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/146566
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/expat/parse-recursive-146169https://github.com/picnixz/cpython/tree/fix/expat/parse-recursive-146169
Conversationhttps://github.com/python/cpython/pull/146566
Commits7 (7)https://github.com/python/cpython/pull/146566/commits
Checkshttps://github.com/python/cpython/pull/146566/checks
Files changedhttps://github.com/python/cpython/pull/146566/files
gh-146169: correctly handle re-entrant parsing calls in Expat handlershttps://github.com/python/cpython/pull/146566#top
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/expat/parse-recursive-146169https://github.com/picnixz/cpython/tree/fix/expat/parse-recursive-146169
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 28, 2026https://github.com/python/cpython/pull/146566#issue-4159312983
Please reload this pagehttps://github.com/python/cpython/pull/146566
Segfault/UB from expat when re-entering the XML Parser #146169https://github.com/python/cpython/issues/146169
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
pythongh-146169https://github.com/python/cpython/issues/146169
: correctly handle re-entrant parsing calls in Expat h…https://github.com/python/cpython/pull/146566/commits/09d6771702395dd664db81d850b7f4e9e871f765
09d6771https://github.com/python/cpython/pull/146566/commits/09d6771702395dd664db81d850b7f4e9e871f765
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 28, 2026 https://github.com/python/cpython/pull/146566#ref-issue-4101689400
Segfault/UB from expat when re-entering the XML Parser #146169 https://github.com/python/cpython/issues/146169
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 28, 2026https://github.com/python/cpython/pull/146566#event-23997249556
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 28, 2026 https://github.com/python/cpython/pull/146566#pullrequestreview-4025476563
View reviewed changes https://github.com/python/cpython/pull/146566/files/09d6771702395dd664db81d850b7f4e9e871f765
Misc/NEWS.d/next/Library/2026-03-28-10-27-46.gh-issue-146169.RBF1xp.rsthttps://github.com/python/cpython/pull/146566/files/09d6771702395dd664db81d850b7f4e9e871f765#diff-103c8b1992685e0ad784b0f62637b33c8a744d0e88eba15cf800129792529ec3
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
Update Misc/NEWS.d/next/Library/2026-03-28-10-27-46.gh-issue-146169.R…https://github.com/python/cpython/pull/146566/commits/ad69e1e5a87ae4f7b335284b5d17ad36079d3b9a
ad69e1ehttps://github.com/python/cpython/pull/146566/commits/ad69e1e5a87ae4f7b335284b5d17ad36079d3b9a
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 28, 2026https://github.com/python/cpython/pull/146566#issuecomment-4147850530
Please reload this pagehttps://github.com/python/cpython/pull/146566
@hartworkhttps://github.com/hartwork
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
picnixzhttps://github.com/picnixz
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Mar 28, 2026https://github.com/python/cpython/pull/146566#event-23997288554
https://github.com/hartwork
hartworkhttps://github.com/hartwork
Mar 28, 2026 https://github.com/python/cpython/pull/146566#pullrequestreview-4025974719
View reviewed changes https://github.com/python/cpython/pull/146566/files/ad69e1e5a87ae4f7b335284b5d17ad36079d3b9a
hartworkhttps://github.com/hartwork
https://github.com/python/cpython/pull/146566#pullrequestreview-4025974719
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@hartworkhttps://github.com/hartwork
@picnixzhttps://github.com/picnixz
Please reload this pagehttps://github.com/python/cpython/pull/146566
Lib/test/test_pyexpat.pyhttps://github.com/python/cpython/pull/146566/files/ad69e1e5a87ae4f7b335284b5d17ad36079d3b9a#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
Please reload this pagehttps://github.com/python/cpython/pull/146566
Lib/test/test_pyexpat.pyhttps://github.com/python/cpython/pull/146566/files/ad69e1e5a87ae4f7b335284b5d17ad36079d3b9a#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
Please reload this pagehttps://github.com/python/cpython/pull/146566
Modules/pyexpat.chttps://github.com/python/cpython/pull/146566/files/ad69e1e5a87ae4f7b335284b5d17ad36079d3b9a#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 11, 2026https://github.com/python/cpython/pull/146566#issuecomment-4229519400
Please reload this pagehttps://github.com/python/cpython/pull/146566
picnixzhttps://github.com/picnixz
April 11, 2026 15:42https://github.com/python/cpython/pull/146566#commits-pushed-03266f4
https://github.com/picnixz
forbid reentrant calls to ParseFile()https://github.com/python/cpython/pull/146566/commits/03266f4af776fd1e56272e3d6883e879d40b6291
03266f4https://github.com/python/cpython/pull/146566/commits/03266f4af776fd1e56272e3d6883e879d40b6291
https://github.com/picnixz
nit: improve tests writuphttps://github.com/python/cpython/pull/146566/commits/f75a84cbbb497abb1b7820ccefe72ebbddfa81ee
f75a84chttps://github.com/python/cpython/pull/146566/commits/f75a84cbbb497abb1b7820ccefe72ebbddfa81ee
https://github.com/picnixz
add tests for XML_ParseFilehttps://github.com/python/cpython/pull/146566/commits/7015918015b41d8ca49a9cb0ed0d021d4b24d07f
7015918https://github.com/python/cpython/pull/146566/commits/7015918015b41d8ca49a9cb0ed0d021d4b24d07f
https://github.com/picnixz
picnixzhttps://github.com/picnixz
hartworkhttps://github.com/hartwork
April 11, 2026 13:48https://github.com/python/cpython/pull/146566#event-24407901644
https://github.com/hartwork
hartworkhttps://github.com/hartwork
Apr 11, 2026 https://github.com/python/cpython/pull/146566#pullrequestreview-4093819390
View reviewed changes https://github.com/python/cpython/pull/146566/files/7015918015b41d8ca49a9cb0ed0d021d4b24d07f
Misc/NEWS.d/next/Library/2026-03-28-10-27-46.gh-issue-146169.RBF1xp.rsthttps://github.com/python/cpython/pull/146566/files/7015918015b41d8ca49a9cb0ed0d021d4b24d07f#diff-103c8b1992685e0ad784b0f62637b33c8a744d0e88eba15cf800129792529ec3
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 11, 2026 https://github.com/python/cpython/pull/146566#pullrequestreview-4093825438
View reviewed changes https://github.com/python/cpython/pull/146566/files/7015918015b41d8ca49a9cb0ed0d021d4b24d07f
Misc/NEWS.d/next/Library/2026-03-28-10-27-46.gh-issue-146169.RBF1xp.rsthttps://github.com/python/cpython/pull/146566/files/7015918015b41d8ca49a9cb0ed0d021d4b24d07f#diff-103c8b1992685e0ad784b0f62637b33c8a744d0e88eba15cf800129792529ec3
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
Update Misc/NEWS.d/next/Library/2026-03-28-10-27-46.gh-issue-146169.R…https://github.com/python/cpython/pull/146566/commits/2a08400d054f382063f0dbb5cd13b2b6222fd03a
2a08400https://github.com/python/cpython/pull/146566/commits/2a08400d054f382063f0dbb5cd13b2b6222fd03a
https://github.com/hartwork
hartworkhttps://github.com/hartwork
Apr 11, 2026 https://github.com/python/cpython/pull/146566#pullrequestreview-4093948504
View reviewed changes https://github.com/python/cpython/pull/146566/files/2a08400d054f382063f0dbb5cd13b2b6222fd03a
Lib/test/test_pyexpat.pyhttps://github.com/python/cpython/pull/146566/files/2a08400d054f382063f0dbb5cd13b2b6222fd03a#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
picnixzhttps://github.com/picnixz
hartworkhttps://github.com/hartwork
April 12, 2026 16:00https://github.com/python/cpython/pull/146566#event-24422521171
https://github.com/picnixz
simplify testhttps://github.com/python/cpython/pull/146566/commits/0488dee70e2ab3b52c64be07def8b6b99d27e121
0488deehttps://github.com/python/cpython/pull/146566/commits/0488dee70e2ab3b52c64be07def8b6b99d27e121
https://github.com/hartwork
hartworkhttps://github.com/hartwork
Apr 12, 2026 https://github.com/python/cpython/pull/146566#pullrequestreview-4095256245
View reviewed changes https://github.com/python/cpython/pull/146566/files/0488dee70e2ab3b52c64be07def8b6b99d27e121
hartworkhttps://github.com/hartwork
https://github.com/python/cpython/pull/146566#pullrequestreview-4095256245
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@picnixzhttps://github.com/picnixz
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 12, 2026https://github.com/python/cpython/pull/146566#issuecomment-4231930230
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 18, 2026https://github.com/python/cpython/pull/146566#issuecomment-4473081359
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
May 18, 2026https://github.com/python/cpython/pull/146566#event-25635812701
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
May 30, 2026https://github.com/python/cpython/pull/146566#event-26140146848
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Jun 3, 2026https://github.com/python/cpython/pull/146566#event-26263382022
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%2F146566
https://github.com/hartwork
hartwork https://github.com/hartwork
https://github.com/python/cpython/pull/146566/files/0488dee70e2ab3b52c64be07def8b6b99d27e121
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Please reload this pagehttps://github.com/python/cpython/pull/146566
https://github.com/picnixz
https://github.com/hartwork
https://github.com/serhiy-storchaka
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.