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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f259849-1c0e-656f-0015-29acbd14559d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9390:1F2B:13D9CB5:1A711F8:6B01FE25 |
| html-safe-nonce | 380552d2f951e067098dfbb58f6887d3bdbfe852935e70af18030f8190f5194c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzkwOjFGMkI6MTNEOUNCNToxQTcxMUY4OjZCMDFGRTI1IiwidmlzaXRvcl9pZCI6IjQyMjgxODI0NTA0MjMwNzAyNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8646b7f2b2b377316850763654cc9a70c399e83cd544e235f501eece9210a2b3 |
| hovercard-subject-tag | issue:3067499696 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/134070/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc86cb55a132bee15543d9ba9af62f45dfa70af4e15eac6e87cbeff2d5206deb/python/cpython/issues/134070 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc86cb55a132bee15543d9ba9af62f45dfa70af4e15eac6e87cbeff2d5206deb/python/cpython/issues/134070 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fuhsnn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width