René's URL Explorer Experiment


Title: gh-134070: Prevent out-of-bounds read in mi_clz32 and mi_ctz32 by vedant713 · Pull Request #134149 · python/cpython · GitHub

Open Graph Title: gh-134070: Prevent out-of-bounds read in mi_clz32 and mi_ctz32 by vedant713 · Pull Request #134149 · python/cpython

X Title: gh-134070: Prevent out-of-bounds read in mi_clz32 and mi_ctz32 by vedant713 · Pull Request #134149 · python/cpython

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

Open Graph Description: Fixes GH-134070 Summary: This patch adds a masking operation to the index calculation in mi_ctz32() and mi_clz32() functions to prevent out-of-bounds access on 64-bit systems, matching the fix from...

X Description: Fixes GH-134070 Summary: This patch adds a masking operation to the index calculation in mi_ctz32() and mi_clz32() functions to prevent out-of-bounds access on 64-bit systems, matching the fix from...

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

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:88ae9e9b-e3f9-feb3-e08f-be314e0e7345
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBECC:323204:16CE402:1E12A51:6B0204A5
html-safe-nonced5667fec426ba4bdd35d8df2115075ec455c6ab02f5751e142294784f2bd8a9a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUNDOjMyMzIwNDoxNkNFNDAyOjFFMTJBNTE6NkIwMjA0QTUiLCJ2aXNpdG9yX2lkIjoiNzkzOTQ1OTYzMjE1MjU3NzE4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac455a89f47c59d69c324fbc08b2c769f0a82c535ab9d3df17e9c719ee21d251f9
hovercard-subject-tagpull_request:2526259685
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/134149/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/609a046b147a53371e3ebff923a260ab3c7c67765faba2c00a686622bfe249a8/python/cpython/pull/134149
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/609a046b147a53371e3ebff923a260ab3c7c67765faba2c00a686622bfe249a8/python/cpython/pull/134149
og:image:altFixes GH-134070 Summary: This patch adds a masking operation to the index calculation in mi_ctz32() and mi_clz32() functions to prevent out-of-bounds access on 64-bit systems, matching the fix from...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevedant713
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/134149#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F134149
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%2F134149
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/134149
Reloadhttps://github.com/python/cpython/pull/134149
Reloadhttps://github.com/python/cpython/pull/134149
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
vedant713https://github.com/vedant713
python:mainhttps://github.com/python/cpython/tree/main
vedant713:fix-mimalloc-bughttps://github.com/vedant713/cpython/tree/fix-mimalloc-bug
Conversationhttps://github.com/python/cpython/pull/134149
Commits8 (8)https://github.com/python/cpython/pull/134149/commits
Checkshttps://github.com/python/cpython/pull/134149/checks
Files changedhttps://github.com/python/cpython/pull/134149/files
gh-134070: Prevent out-of-bounds read in mi_clz32 and mi_ctz32https://github.com/python/cpython/pull/134149#top
vedant713https://github.com/vedant713
python:mainhttps://github.com/python/cpython/tree/main
vedant713:fix-mimalloc-bughttps://github.com/vedant713/cpython/tree/fix-mimalloc-bug
https://github.com/vedant713
vedant713https://github.com/vedant713
May 17, 2025https://github.com/python/cpython/pull/134149#issue-3070981990
GH-134070https://github.com/python/cpython/issues/134070
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/vedant713
Fix: Prevent out-of-bounds read in mi_clz32 and mi_ctz32 (https://github.com/python/cpython/pull/134149/commits/e8466b091ae1b86f1fb5ce5028ea2eb5ec3ee465
python#134070https://github.com/python/cpython/issues/134070
)https://github.com/python/cpython/pull/134149/commits/e8466b091ae1b86f1fb5ce5028ea2eb5ec3ee465
e8466b0https://github.com/python/cpython/pull/134149/commits/e8466b091ae1b86f1fb5ce5028ea2eb5ec3ee465
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888526524
require a NEWS entryhttps://devguide.python.org/core-developers/committing/#updating-news-and-what-s-new-in-python
blurb_ithttps://blurb-it.herokuapp.com
blurbhttps://pypi.org/project/blurb/
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 17, 2025https://github.com/python/cpython/pull/134149#event-17699969547
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
May 17, 2025https://github.com/python/cpython/pull/134149#event-17700025814
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
colesburyhttps://github.com/colesbury
May 17, 2025 18:51https://github.com/python/cpython/pull/134149#event-17700025950
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 17, 2025 https://github.com/python/cpython/pull/134149#ref-issue-3067499696
Out-of-bounds read in integrated mimalloc (fixed upstream) #134070 https://github.com/python/cpython/issues/134070
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
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
May 17, 2025https://github.com/python/cpython/pull/134149#event-17700026674
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
May 17, 2025https://github.com/python/cpython/pull/134149#event-17700026961
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
May 17, 2025 https://github.com/python/cpython/pull/134149#pullrequestreview-2848373902
View reviewed changes https://github.com/python/cpython/pull/134149/files/e8466b091ae1b86f1fb5ce5028ea2eb5ec3ee465
ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/python/cpython/pull/134149#pullrequestreview-2848373902
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/collinfunk
collinfunkhttps://github.com/collinfunk
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888553333
https://github.com/microsoft/mimallochttps://github.com/microsoft/mimalloc
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/picnixz
picnixzhttps://github.com/picnixz
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888555648
microsoft/mimalloc@ed31847https://github.com/microsoft/mimalloc/commit/ed318471126918fce7caf0001cf1e0c78f95173e
Please reload this pagehttps://github.com/python/cpython/pull/134149
vedant713https://github.com/vedant713
May 17, 2025 https://github.com/python/cpython/pull/134149#ref-commit-960e266
https://github.com/vedant713
pythongh-134070https://github.com/python/cpython/issues/134070
: Fix mi_clz32/mi_ctz32 to prevent out-of-bounds read (https://github.com/vedant713/cpython/commit/960e2661f5bc64c6a9ecfc7025063b532cae22a1
p…https://github.com/python/cpython/pull/134149
960e266https://github.com/vedant713/cpython/commit/960e2661f5bc64c6a9ecfc7025063b532cae22a1
…ythonGH-134149https://github.com/python/cpython/pull/134149
https://github.com/vedant713
Merge branch 'main' into fix-mimalloc-bughttps://github.com/python/cpython/pull/134149/commits/3658bc33ea33c778f0f1c3c6a87a4e095814537b
3658bc3https://github.com/python/cpython/pull/134149/commits/3658bc33ea33c778f0f1c3c6a87a4e095814537b
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888570172
require a NEWS entryhttps://devguide.python.org/core-developers/committing/#updating-news-and-what-s-new-in-python
blurb_ithttps://blurb-it.herokuapp.com
blurbhttps://pypi.org/project/blurb/
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/picnixz
picnixzhttps://github.com/picnixz
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888570872
https://devguide.python.org/getting-started/pull-request-lifecycle/https://devguide.python.org/getting-started/pull-request-lifecycle/
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/picnixz
picnixzhttps://github.com/picnixz
May 17, 2025 https://github.com/python/cpython/pull/134149#ref-pullrequest-3071035288
gh-134070: Fix mi_clz32/mi_ctz32 to prevent out-of-bounds read (GH-134149) #134157 https://github.com/python/cpython/pull/134157
https://github.com/vedant713
vedant713https://github.com/vedant713
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888571688
bedevere/newshttps://blurb-it.herokuapp.com/
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/picnixz
picnixzhttps://github.com/picnixz
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888572439
Please reload this pagehttps://github.com/python/cpython/pull/134149
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/picnixz
picnixzhttps://github.com/picnixz
May 17, 2025 20:33https://github.com/python/cpython/pull/134149#event-17700263484
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 17, 2025https://github.com/python/cpython/pull/134149#event-17700263572
vedant713https://github.com/vedant713
May 17, 2025 17:15https://github.com/python/cpython/pull/134149#commits-pushed-64e9718
https://github.com/vedant713
pythongh-134070https://github.com/python/cpython/issues/134070
: Add news entry for mimalloc out-of-bounds fixhttps://github.com/python/cpython/pull/134149/commits/64e971888fb4ca81feac9597b24c91a2b0710047
64e9718https://github.com/python/cpython/pull/134149/commits/64e971888fb4ca81feac9597b24c91a2b0710047
https://github.com/vedant713
pythongh-134070https://github.com/python/cpython/issues/134070
: Add news entry for mimalloc out-of-bounds fixhttps://github.com/python/cpython/pull/134149/commits/c961fa0786daaaabac51b5afb511ce68845a46d6
c961fa0https://github.com/python/cpython/pull/134149/commits/c961fa0786daaaabac51b5afb511ce68845a46d6
https://github.com/vedant713
pythongh-134070https://github.com/python/cpython/issues/134070
: Add news entry for mimalloc out-of-bounds fixhttps://github.com/python/cpython/pull/134149/commits/911c128a510940518982881d175c0aad1019bea5
911c128https://github.com/python/cpython/pull/134149/commits/911c128a510940518982881d175c0aad1019bea5
https://github.com/vedant713
pythongh-134070https://github.com/python/cpython/issues/134070
: Add news entry for mimalloc out-of-bounds fixhttps://github.com/python/cpython/pull/134149/commits/bce07b258c07fac78e52392729b1c111cfb35f68
bce07b2https://github.com/python/cpython/pull/134149/commits/bce07b258c07fac78e52392729b1c111cfb35f68
https://github.com/vedant713
vedant713https://github.com/vedant713
May 17, 2025 21:52https://github.com/python/cpython/pull/134149#event-17700448379
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 17, 2025https://github.com/python/cpython/pull/134149#event-17700448470
https://github.com/collinfunk
collinfunkhttps://github.com/collinfunk
May 17, 2025https://github.com/python/cpython/pull/134149#issuecomment-2888610578
@picnixzhttps://github.com/picnixz
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/colesbury
colesburyhttps://github.com/colesbury
May 18, 2025https://github.com/python/cpython/pull/134149#issuecomment-2889098186
https://github.com/microsoft/mimalloc/blob/ed318471126918fce7caf0001cf1e0c78f95173e/include/mimalloc/internal.h#L875-L932https://github.com/microsoft/mimalloc/blob/ed318471126918fce7caf0001cf1e0c78f95173e/include/mimalloc/internal.h#L875-L932
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jul 12, 2025https://github.com/python/cpython/pull/134149#issuecomment-3065150446
@vedant713https://github.com/vedant713
Please reload this pagehttps://github.com/python/cpython/pull/134149
vedant713https://github.com/vedant713
July 13, 2025 19:33https://github.com/python/cpython/pull/134149#commits-pushed-bd186c9
https://github.com/vedant713
Update internal.hhttps://github.com/python/cpython/pull/134149/commits/bd186c9452409b8776f9629577033eb4db609e17
bd186c9https://github.com/python/cpython/pull/134149/commits/bd186c9452409b8776f9629577033eb4db609e17
https://github.com/vedant713
Update internal.hhttps://github.com/python/cpython/pull/134149/commits/796a17637ef4efc60865461c8415e76144fa016e
796a176https://github.com/python/cpython/pull/134149/commits/796a17637ef4efc60865461c8415e76144fa016e
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 24, 2026https://github.com/python/cpython/pull/134149#issuecomment-4315336259
Please reload this pagehttps://github.com/python/cpython/pull/134149
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
Apr 24, 2026https://github.com/python/cpython/pull/134149#event-24847821181
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/134149#event-26140161942
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 31, 2026https://github.com/python/cpython/pull/134149#event-26161704582
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 3, 2026https://github.com/python/cpython/pull/134149#issuecomment-5518356584
Please reload this pagehttps://github.com/python/cpython/pull/134149
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
Sep 3, 2026https://github.com/python/cpython/pull/134149#event-30453862611
https://github.com/corona10
corona10https://github.com/corona10
Nov 2, 2026https://github.com/python/cpython/pull/134149#event-34921840270
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%2F134149
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/python/cpython/pull/134149/files/e8466b091ae1b86f1fb5ce5028ea2eb5ec3ee465
https://github.com/colesbury
colesbury https://github.com/colesbury
Please reload this pagehttps://github.com/python/cpython/pull/134149
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%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
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Out-of-bounds read in integrated mimalloc (fixed upstream) https://github.com/python/cpython/issues/134070
Please reload this pagehttps://github.com/python/cpython/pull/134149
https://github.com/vedant713
https://github.com/collinfunk
https://github.com/picnixz
https://github.com/colesbury
https://github.com/ZeroIntensity
https://github.com/serhiy-storchaka
https://github.com/corona10
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.