René's URL Explorer Experiment


Title: gh-151112: Fix double free in `assemble_init` when out of memory by StanFromIreland · Pull Request #151142 · python/cpython · GitHub

Open Graph Title: gh-151112: Fix double free in `assemble_init` when out of memory by StanFromIreland · Pull Request #151142 · python/cpython

X Title: gh-151112: Fix double free in `assemble_init` when out of memory by StanFromIreland · Pull Request #151142 · python/cpython

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

Open Graph Description: Issue: Double free corruption when allocation failures occur in assemble_init #151112

X Description: Issue: Double free corruption when allocation failures occur in assemble_init #151112

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

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/_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:31a5bc0b-23b3-a3ab-0e2c-da8de65c000b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA1DC:34CAB:354B406:442AFFD:6B01F0CB
html-safe-nonce3774cf2167b4d58a4ad6bf08e714657d48e708920190ba101f05b64573bff5c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMURDOjM0Q0FCOjM1NEI0MDY6NDQyQUZGRDo2QjAxRjBDQiIsInZpc2l0b3JfaWQiOiI0NjQxMzE5Mzc0NzE0Njk1ODgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac463419963a02e77665d96bbe40ffdfa95eea6a381d1b5e2855032598c2e816f9
hovercard-subject-tagpull_request:3831121789
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/151142/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f1d2717a55e6e7ec5ddd2c542c576860dc8924ea11e6a94fbb7b8725795a3a95/python/cpython/pull/151142
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f1d2717a55e6e7ec5ddd2c542c576860dc8924ea11e6a94fbb7b8725795a3a95/python/cpython/pull/151142
og:image:altIssue: Double free corruption when allocation failures occur in assemble_init #151112
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameStanFromIreland
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/151142#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F151142
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%2F151142
Sign uphttps://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/151142
Reloadhttps://github.com/python/cpython/pull/151142
Reloadhttps://github.com/python/cpython/pull/151142
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
https://github.com/python/cpython
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
StanFromIreland:oomhttps://github.com/StanFromIreland/cpython/tree/oom
Conversationhttps://github.com/python/cpython/pull/151142
Commits3 (3)https://github.com/python/cpython/pull/151142/commits
Checkshttps://github.com/python/cpython/pull/151142/checks
Files changedhttps://github.com/python/cpython/pull/151142/files
gh-151112: Fix double free in assemble_init when out of memoryhttps://github.com/python/cpython/pull/151142#top
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
StanFromIreland:oomhttps://github.com/StanFromIreland/cpython/tree/oom
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Jun 9, 2026https://github.com/python/cpython/pull/151142#issue-4621568076
Please reload this pagehttps://github.com/python/cpython/pull/151142
Double free corruption when allocation failures occur in assemble_init #151112https://github.com/python/cpython/issues/151112
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/StanFromIreland
Fix three crashes in {assemble,compile,flowgraph}.c when OOMhttps://github.com/python/cpython/pull/151142/commits/46e9ab48841dc0e57431127ace2848d63ca9d31d
46e9ab4https://github.com/python/cpython/pull/151142/commits/46e9ab48841dc0e57431127ace2848d63ca9d31d
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
iritkatrielhttps://github.com/iritkatriel
markshannonhttps://github.com/markshannon
code ownershttps://github.com/python/cpython/blob/c3cd75afdf86f6a811663c71da22cc24c784a6f4/.github/CODEOWNERS#L230
June 9, 2026 11:36https://github.com/python/cpython/pull/151142#event-26520415898
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
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26520417970
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 9, 2026 https://github.com/python/cpython/pull/151142#ref-issue-4616500841
Double free corruption when allocation failures occur in assemble_init #151112 https://github.com/python/cpython/issues/151112
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Jun 9, 2026https://github.com/python/cpython/pull/151142#issuecomment-4659367056
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/iritkatriel
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F151142
StanFromIrelandhttps://github.com/StanFromIreland
June 9, 2026 12:50https://github.com/python/cpython/pull/151142#commits-pushed-9c624ff
https://github.com/StanFromIreland
Revert twohttps://github.com/python/cpython/pull/151142/commits/9c624ff8a3e29acdad3447b92a542667928bda07
9c624ffhttps://github.com/python/cpython/pull/151142/commits/9c624ff8a3e29acdad3447b92a542667928bda07
https://github.com/StanFromIreland
And blurbhttps://github.com/python/cpython/pull/151142/commits/6cc73364c22002589e2b081728511f354527a095
6cc7336https://github.com/python/cpython/pull/151142/commits/6cc73364c22002589e2b081728511f354527a095
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26521011298
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Jun 9, 2026 https://github.com/python/cpython/pull/151142#pullrequestreview-4458273098
View reviewed changes https://github.com/python/cpython/pull/151142/files/6cc73364c22002589e2b081728511f354527a095
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26521141002
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
release-blocker https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Arelease-blocker
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26521226538
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26521230811
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26521230782
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
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
3.16 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.16
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
type-crash https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-crash
release-blocker https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Arelease-blocker
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26522274158
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
5804991https://github.com/python/cpython/commit/580499177ca91477b53b4a40afcec7d3370265b0
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26540497419
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 9, 2026https://github.com/python/cpython/pull/151142#issuecomment-4663427473
@StanFromIrelandhttps://github.com/StanFromIreland
@iritkatrielhttps://github.com/iritkatriel
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26540499774
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26540501221
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 9, 2026https://github.com/python/cpython/pull/151142#issuecomment-4663429220
GH-151205https://github.com/python/cpython/pull/151205
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26540509847
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 9, 2026https://github.com/python/cpython/pull/151142#issuecomment-4663429862
GH-151206https://github.com/python/cpython/pull/151206
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26540513360
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 9, 2026https://github.com/python/cpython/pull/151142#issuecomment-4663430503
GH-151207https://github.com/python/cpython/pull/151207
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jun 9, 2026https://github.com/python/cpython/pull/151142#event-26540516860
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
June 9, 2026 19:49https://github.com/python/cpython/pull/151142#event-26540627367
iritkatrielhttps://github.com/iritkatriel
Jun 9, 2026 https://github.com/python/cpython/pull/151142#ref-commit-310125e
https://github.com/miss-islington
https://github.com/StanFromIreland
[3.13]https://github.com/python/cpython/commit/310125eb9d303046046d4f11a5fce5dede9c2fe8
gh-151112https://github.com/python/cpython/issues/151112
: Fix double free inhttps://github.com/python/cpython/commit/310125eb9d303046046d4f11a5fce5dede9c2fe8
assemble_inithttps://github.com/python/cpython/commit/310125eb9d303046046d4f11a5fce5dede9c2fe8
when out of memo…https://github.com/python/cpython/commit/310125eb9d303046046d4f11a5fce5dede9c2fe8
310125ehttps://github.com/python/cpython/commit/310125eb9d303046046d4f11a5fce5dede9c2fe8
GH-151142https://github.com/python/cpython/pull/151142
#151207https://github.com/python/cpython/pull/151207
gh-151112https://github.com/python/cpython/issues/151112
GH-151142https://github.com/python/cpython/pull/151142
5804991https://github.com/python/cpython/commit/580499177ca91477b53b4a40afcec7d3370265b0
iritkatrielhttps://github.com/iritkatriel
Jun 9, 2026 https://github.com/python/cpython/pull/151142#ref-commit-24cb16e
https://github.com/miss-islington
https://github.com/StanFromIreland
[3.14]https://github.com/python/cpython/commit/24cb16ee804791295b442eefc2dd30f4926efab9
gh-151112https://github.com/python/cpython/issues/151112
: Fix double free inhttps://github.com/python/cpython/commit/24cb16ee804791295b442eefc2dd30f4926efab9
assemble_inithttps://github.com/python/cpython/commit/24cb16ee804791295b442eefc2dd30f4926efab9
when out of memo…https://github.com/python/cpython/commit/24cb16ee804791295b442eefc2dd30f4926efab9
24cb16ehttps://github.com/python/cpython/commit/24cb16ee804791295b442eefc2dd30f4926efab9
GH-151142https://github.com/python/cpython/pull/151142
#151206https://github.com/python/cpython/pull/151206
gh-151112https://github.com/python/cpython/issues/151112
GH-151142https://github.com/python/cpython/pull/151142
5804991https://github.com/python/cpython/commit/580499177ca91477b53b4a40afcec7d3370265b0
iritkatrielhttps://github.com/iritkatriel
Jun 9, 2026 https://github.com/python/cpython/pull/151142#ref-commit-50765f4
https://github.com/miss-islington
https://github.com/StanFromIreland
[3.15]https://github.com/python/cpython/commit/50765f43f72b62778ed896e34faef8b10fc07058
gh-151112https://github.com/python/cpython/issues/151112
: Fix double free inhttps://github.com/python/cpython/commit/50765f43f72b62778ed896e34faef8b10fc07058
assemble_inithttps://github.com/python/cpython/commit/50765f43f72b62778ed896e34faef8b10fc07058
when out of memo…https://github.com/python/cpython/commit/50765f43f72b62778ed896e34faef8b10fc07058
50765f4https://github.com/python/cpython/commit/50765f43f72b62778ed896e34faef8b10fc07058
GH-151142https://github.com/python/cpython/pull/151142
#151205https://github.com/python/cpython/pull/151205
gh-151112https://github.com/python/cpython/issues/151112
GH-151142https://github.com/python/cpython/pull/151142
5804991https://github.com/python/cpython/commit/580499177ca91477b53b4a40afcec7d3370265b0
philthompson10https://github.com/philthompson10
Jun 17, 2026 https://github.com/python/cpython/pull/151142#ref-commit-dbd40b9
https://github.com/StanFromIreland
https://github.com/philthompson10
pythongh-151112https://github.com/python/cpython/issues/151112
: Fix double free inhttps://github.com/philthompson10/cpython/commit/dbd40b97c3efb913c9f26880d05bd4b350384640
assemble_inithttps://github.com/philthompson10/cpython/commit/dbd40b97c3efb913c9f26880d05bd4b350384640
when out of memory (https://github.com/philthompson10/cpython/commit/dbd40b97c3efb913c9f26880d05bd4b350384640
dbd40b9https://github.com/philthompson10/cpython/commit/dbd40b97c3efb913c9f26880d05bd4b350384640
python#151142https://github.com/python/cpython/pull/151142
https://github.com/lpyu001
lpyu001https://github.com/lpyu001
Sep 26, 2026 https://github.com/python/cpython/pull/151142#ref-issue-5595193579
Double release of PyBytesWriter in assemble_init() error path corrupts the bytes writer freelist #158241 https://github.com/python/cpython/issues/158241
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%2F151142
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
https://github.com/python/cpython/pull/151142/files/6cc73364c22002589e2b081728511f354527a095
https://github.com/markshannon
markshannon https://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/151142
3.16 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.16
type-crash https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-crash
Release and Deferred blockers 🚫 https://github.com/orgs/python/projects/2
Please reload this pagehttps://github.com/python/cpython/pull/151142
https://github.com/StanFromIreland
https://github.com/iritkatriel
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.