René's URL Explorer Experiment


Title: gh-157364: Fix use-after-free in TextIOWrapper during reentrant detach by ashm-dev · Pull Request #157370 · python/cpython · GitHub

Open Graph Title: gh-157364: Fix use-after-free in TextIOWrapper during reentrant detach by ashm-dev · Pull Request #157370 · python/cpython

X Title: gh-157364: Fix use-after-free in TextIOWrapper during reentrant detach by ashm-dev · Pull Request #157370 · python/cpython

Description: Issue: gh-157364

Open Graph Description: Issue: gh-157364

X Description: Issue: gh-157364

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d410bad6-fff5-fcbe-bcf8-d463161073ac
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE7DE:62F48:12D29C9:18C979C:6B021E85
html-safe-noncec35cc51925d2a967afe74f24d9f07e4aa971010ae8fd15ae7e2d82e7fd3afc18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0RFOjYyRjQ4OjEyRDI5Qzk6MThDOTc5Qzo2QjAyMUU4NSIsInZpc2l0b3JfaWQiOiIzMTI5NDQxOTQxMDc1NDAyMzczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd92a4c5b50c23ce23825e9a6eabf55cad80a47d8565ce39734cd0fd78c3f3c22
hovercard-subject-tagpull_request:4514743971
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/157370/files
twitter:imagehttps://avatars.githubusercontent.com/u/173620149?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/173620149?s=400&v=4
og:image:altIssue: gh-157364
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/157370/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157370%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157370%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/157370/files
Reloadhttps://github.com/python/cpython/pull/157370/files
Reloadhttps://github.com/python/cpython/pull/157370/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
ashm-dev:gh-157364https://github.com/ashm-dev/cpython/tree/gh-157364
Conversation 34 https://github.com/python/cpython/pull/157370
Commits 7 https://github.com/python/cpython/pull/157370/commits
Checks 61 https://github.com/python/cpython/pull/157370/checks
Files changed 3 https://github.com/python/cpython/pull/157370/files
gh-157364: Fix use-after-free in TextIOWrapper during reentrant detach https://github.com/python/cpython/pull/157370/files#top
Show all changes 7 commits https://github.com/python/cpython/pull/157370/files
979a884 fix(io): keep TextIOWrapper buffer alive during calls ashm-dev Sep 12, 2026 https://github.com/python/cpython/pull/157370/commits/979a884a1b0a7bd45b78d94e8699cede87adfd77
05510fb Merge branch 'main' into gh-157364 ashm-dev Sep 12, 2026 https://github.com/python/cpython/pull/157370/commits/05510fbdf1f2f17cadf59e57fff2d93c764a7741
c3755e4 refactor(io): return strong ref from buffer_access_safe ashm-dev Sep 13, 2026 https://github.com/python/cpython/pull/157370/commits/c3755e49e4504417b1df1818cd89da0ff61b7464
9763043 fix(io): keep BufferedReader alive via readinto memoryview ashm-dev Sep 22, 2026 https://github.com/python/cpython/pull/157370/commits/976304399ac8677a045a238ae03fe477c2b9bf80
7e1eedd fix(io): scope UAF patch to TextIOWrapper ashm-dev Oct 6, 2026 https://github.com/python/cpython/pull/157370/commits/7e1eedd3b62ca90cf93d4d8003f81f03437e25dc
aa9a179 refactor(io): preserve detach state update order ashm-dev Oct 7, 2026 https://github.com/python/cpython/pull/157370/commits/aa9a1794ec25fbbb7e0bb7283fa595d2448f4710
e654017 Apply suggestion from @vstinner vstinner Oct 7, 2026 https://github.com/python/cpython/pull/157370/commits/e65401749ed0c99af717f3cda494d0c1b6d54468
Clear filters https://github.com/python/cpython/pull/157370/files
Please reload this pagehttps://github.com/python/cpython/pull/157370/files
Please reload this pagehttps://github.com/python/cpython/pull/157370/files
test_textio.py https://github.com/python/cpython/pull/157370/files#diff-871737268f0629fa5bc32f116d3c5f1a37accc05d5505883c9f0f21bf6ac7ee3
2026-09-12-18-03-15.gh-issue-157364.Qd7mKs.rst https://github.com/python/cpython/pull/157370/files#diff-0f39e67e5600db4664769ebce28c3f81885f17ff18ba5001b59baf6e2b371276
textio.c https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L526
Lib/test/test_io/test_textio.pyhttps://github.com/python/cpython/pull/157370/files#diff-871737268f0629fa5bc32f116d3c5f1a37accc05d5505883c9f0f21bf6ac7ee3
View file https://github.com/ashm-dev/cpython/blob/e65401749ed0c99af717f3cda494d0c1b6d54468/Lib/test/test_io/test_textio.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/157370/{{ revealButtonHref }}
https://github.com/python/cpython/pull/157370/files#diff-871737268f0629fa5bc32f116d3c5f1a37accc05d5505883c9f0f21bf6ac7ee3
Please reload this pagehttps://github.com/python/cpython/pull/157370/files
https://github.com/python/cpython/pull/157370/files#diff-871737268f0629fa5bc32f116d3c5f1a37accc05d5505883c9f0f21bf6ac7ee3
Misc/NEWS.d/next/Library/2026-09-12-18-03-15.gh-issue-157364.Qd7mKs.rsthttps://github.com/python/cpython/pull/157370/files#diff-0f39e67e5600db4664769ebce28c3f81885f17ff18ba5001b59baf6e2b371276
View file https://github.com/ashm-dev/cpython/blob/e65401749ed0c99af717f3cda494d0c1b6d54468/Misc/NEWS.d/next/Library/2026-09-12-18-03-15.gh-issue-157364.Qd7mKs.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/157370/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L527
Modules/_io/textio.chttps://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
View file https://github.com/ashm-dev/cpython/blob/e65401749ed0c99af717f3cda494d0c1b6d54468/Modules/_io/textio.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/157370/{{ revealButtonHref }}
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
Please reload this pagehttps://github.com/python/cpython/pull/157370/files
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
https://github.com/python/cpython/pull/157370/files#diff-f6d1380274f6859688c821fced58fb1c829d8acad44ae252ba988e220e1080b3
Please reload this pagehttps://github.com/python/cpython/pull/157370/files
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.