René's URL Explorer Experiment


Title: Out-of-bounds read in integrated mimalloc (fixed upstream) · Issue #134070 · python/cpython · GitHub

Open Graph Title: Out-of-bounds read in integrated mimalloc (fixed upstream) · Issue #134070 · python/cpython

X Title: Out-of-bounds read in integrated mimalloc (fixed upstream) · Issue #134070 · python/cpython

Description: Bug report Bug description: The integrated mimalloc has out-of-bounds bug in the generic implementation of ctz/clz: cpython/Include/internal/mimalloc/mimalloc/internal.h Lines 847 to 870 in 6a22963 static inline size_t mi_ctz32(uint32_t ...

Open Graph Description: Bug report Bug description: The integrated mimalloc has out-of-bounds bug in the generic implementation of ctz/clz: cpython/Include/internal/mimalloc/mimalloc/internal.h Lines 847 to 870 in 6a22963...

X Description: Bug report Bug description: The integrated mimalloc has out-of-bounds bug in the generic implementation of ctz/clz: cpython/Include/internal/mimalloc/mimalloc/internal.h Lines 847 to 870 in 6a22963...

Opengraph URL: https://github.com/python/cpython/issues/134070

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Out-of-bounds read in integrated mimalloc (fixed upstream)","articleBody":"# Bug report\n\n### Bug description:\n\nThe integrated mimalloc has out-of-bounds bug in the generic implementation of ctz/clz:\nhttps://github.com/python/cpython/blob/6a2296329117463fd09abc73656f1d7b48076100/Include/internal/mimalloc/mimalloc/internal.h#L847-L870\nOn platforms with 64-bit `UL`, the multiplication in index calculation can grow much larger than array `debruijn[]`.\n\nIt has been fixed in this upstream commit:\nhttps://github.com/microsoft/mimalloc/commit/ed318471126918fce7caf0001cf1e0c78f95173e\n\n### CPython versions tested on:\n\n3.14, CPython main branch, 3.13, 3.15\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-134149\n* gh-134157\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/fuhsnn","@type":"Person","name":"fuhsnn"},"datePublished":"2025-05-15T22:25:49Z","url":"https://github.com/python/cpython/issues/134070"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2f259849-1c0e-656f-0015-29acbd14559d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9390:1F2B:13D9CB5:1A711F8:6B01FE25
html-safe-nonce380552d2f951e067098dfbb58f6887d3bdbfe852935e70af18030f8190f5194c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzkwOjFGMkI6MTNEOUNCNToxQTcxMUY4OjZCMDFGRTI1IiwidmlzaXRvcl9pZCI6IjQyMjgxODI0NTA0MjMwNzAyNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8646b7f2b2b377316850763654cc9a70c399e83cd544e235f501eece9210a2b3
hovercard-subject-tagissue:3067499696
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/134070/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dc86cb55a132bee15543d9ba9af62f45dfa70af4e15eac6e87cbeff2d5206deb/python/cpython/issues/134070
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dc86cb55a132bee15543d9ba9af62f45dfa70af4e15eac6e87cbeff2d5206deb/python/cpython/issues/134070
og:image:altBug report Bug description: The integrated mimalloc has out-of-bounds bug in the generic implementation of ctz/clz: cpython/Include/internal/mimalloc/mimalloc/internal.h Lines 847 to 870 in 6a22963...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefuhsnn
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/134070#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F134070
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%2Fissues%2F134070
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/134070
Reloadhttps://github.com/python/cpython/issues/134070
Reloadhttps://github.com/python/cpython/issues/134070
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/134070
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/134070
Out-of-bounds read in integrated mimalloc (fixed upstream)https://github.com/python/cpython/issues/134070#top
https://github.com/colesbury
https://github.com/corona10
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/fuhsnn
fuhsnnhttps://github.com/fuhsnn
on May 15, 2025https://github.com/python/cpython/issues/134070#issue-3067499696
cpython/Include/internal/mimalloc/mimalloc/internal.hhttps://github.com/python/cpython/blob/6a2296329117463fd09abc73656f1d7b48076100/Include/internal/mimalloc/mimalloc/internal.h#L847-L870
6a22963https://github.com/python/cpython/commit/6a2296329117463fd09abc73656f1d7b48076100
microsoft/mimalloc@ed31847https://github.com/microsoft/mimalloc/commit/ed318471126918fce7caf0001cf1e0c78f95173e
gh-134070: Prevent out-of-bounds read in mi_clz32 and mi_ctz32 #134149https://github.com/python/cpython/pull/134149
gh-134070: Fix mi_clz32/mi_ctz32 to prevent out-of-bounds read (GH-134149) #134157https://github.com/python/cpython/pull/134157
fuhsnnhttps://github.com/fuhsnn
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on May 15, 2025https://github.com/python/cpython/issues/134070#event-17679952647
picnixzhttps://github.com/picnixz
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
on May 15, 2025https://github.com/python/cpython/issues/134070#event-17679998302
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on May 15, 2025https://github.com/python/cpython/issues/134070#issuecomment-2885195177
@colesburyhttps://github.com/colesbury
colesburyhttps://github.com/colesbury
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on May 16, 2025https://github.com/python/cpython/issues/134070#event-17690179790
colesburyhttps://github.com/colesbury
on May 16, 2025https://github.com/python/cpython/issues/134070#event-17690180356
vedant713https://github.com/vedant713
on May 17, 2025https://github.com/python/cpython/issues/134070#event-17699959105
Fix: Prevent out-of-bounds read in mi_clz32 and mi_ctz32 (python#134070)https://github.com/vedant713/cpython/commit/6a5b559aa504bc3aef06bdde09d2cece5e9fe69c
python#134070https://github.com/python/cpython/issues/134070
6a5b559https://github.com/vedant713/cpython/commit/6a5b559aa504bc3aef06bdde09d2cece5e9fe69c
Fix: Prevent out-of-bounds read in mi_clz32 and mi_ctz32 (python#134070)https://github.com/vedant713/cpython/commit/e8466b091ae1b86f1fb5ce5028ea2eb5ec3ee465
python#134070https://github.com/python/cpython/issues/134070
e8466b0https://github.com/vedant713/cpython/commit/e8466b091ae1b86f1fb5ce5028ea2eb5ec3ee465
Fix: Prevent out-of-bounds read in mi_ctz_generic32 and mi_clz_generic32https://github.com/vedant713/mimalloc/commit/7ec98efee7a3f7d78eef60299d55f912b6fc0096
7ec98efhttps://github.com/vedant713/mimalloc/commit/7ec98efee7a3f7d78eef60299d55f912b6fc0096
pythongh-134070: Fix mi_clz32/mi_ctz32 to prevent out-of-bounds read (p…https://github.com/vedant713/cpython/commit/960e2661f5bc64c6a9ecfc7025063b532cae22a1
pythongh-134070https://github.com/python/cpython/issues/134070
p…https://github.com/python/cpython/pull/134149
960e266https://github.com/vedant713/cpython/commit/960e2661f5bc64c6a9ecfc7025063b532cae22a1
pythongh-134070: Add news entry for mi_clz32/mi_ctz32 out-of-bounds fixhttps://github.com/vedant713/cpython/commit/eb1f908c5d0446483ef3b00a4fa69123afd12cc9
pythongh-134070https://github.com/python/cpython/issues/134070
eb1f908https://github.com/vedant713/cpython/commit/eb1f908c5d0446483ef3b00a4fa69123afd12cc9
pythongh-134070: Add news entry for mimalloc out-of-bounds fixhttps://github.com/vedant713/cpython/commit/64e971888fb4ca81feac9597b24c91a2b0710047
pythongh-134070https://github.com/python/cpython/issues/134070
64e9718https://github.com/vedant713/cpython/commit/64e971888fb4ca81feac9597b24c91a2b0710047
pythongh-134070: Add news entry for mimalloc out-of-bounds fixhttps://github.com/vedant713/cpython/commit/c961fa0786daaaabac51b5afb511ce68845a46d6
pythongh-134070https://github.com/python/cpython/issues/134070
c961fa0https://github.com/vedant713/cpython/commit/c961fa0786daaaabac51b5afb511ce68845a46d6
pythongh-134070: Add news entry for mimalloc out-of-bounds fixhttps://github.com/vedant713/cpython/commit/911c128a510940518982881d175c0aad1019bea5
pythongh-134070https://github.com/python/cpython/issues/134070
911c128https://github.com/vedant713/cpython/commit/911c128a510940518982881d175c0aad1019bea5
pythongh-134070: Add news entry for mimalloc out-of-bounds fixhttps://github.com/vedant713/cpython/commit/bce07b258c07fac78e52392729b1c111cfb35f68
pythongh-134070https://github.com/python/cpython/issues/134070
bce07b2https://github.com/vedant713/cpython/commit/bce07b258c07fac78e52392729b1c111cfb35f68
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
on Oct 31, 2026https://github.com/python/cpython/issues/134070#issuecomment-6545372294
@corona10https://github.com/corona10
StanFromIrelandhttps://github.com/StanFromIreland
pendingThe issue will be closed if no feedback is providedhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22pending%22
on Oct 31, 2026https://github.com/python/cpython/issues/134070#event-34779815326
corona10https://github.com/corona10
on Oct 31, 2026https://github.com/python/cpython/issues/134070#event-34786957357
https://github.com/corona10
corona10https://github.com/corona10
on Nov 2, 2026https://github.com/python/cpython/issues/134070#issuecomment-6580199863
cpython/Include/internal/mimalloc/mimalloc/internal.hhttps://github.com/python/cpython/blob/313dfd842a3a69fb1c9134561880ab6937d3ff12/Include/internal/mimalloc/mimalloc/internal.h#L1042-L1051
313dfd8https://github.com/python/cpython/commit/313dfd842a3a69fb1c9134561880ab6937d3ff12
#159111https://github.com/python/cpython/issues/159111
corona10https://github.com/corona10
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 2, 2026https://github.com/python/cpython/issues/134070#event-34921812157
corona10https://github.com/corona10
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
pendingThe issue will be closed if no feedback is providedhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22pending%22
on Nov 2, 2026https://github.com/python/cpython/issues/134070#event-34921828790
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/134070
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/134070
colesburyhttps://github.com/colesbury
corona10https://github.com/corona10
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.