◐ Shell
clean mode source ↗

gh-134070: Fix mi_clz32/mi_ctz32 to prevent out-of-bounds read (GH-134149) by vedant713 · Pull Request #134157 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@vedant713

@vedant713 vedant713 commented

May 17, 2025

edited by bedevere-app Bot

Loading

Copy link Copy Markdown

Fixed an out-of-bounds read in the generic implementation of mi_clz32 and mi_ctz32 in the integrated mimalloc allocator.
This issue could occur on platforms with 64-bit unsigned long values.

The fix follows the approach from the upstream patch in microsoft/mimalloc:
microsoft/mimalloc@ed3184752c80f73e362

@picnixz

picnixz commented

May 17, 2025

Copy link Copy Markdown

Member

Please do not open multiple PRs. Close either of the two.

@picnixz picnixz marked this pull request as draft

May 17, 2025 20:18

@picnixz

This comment was marked as resolved.

@picnixz

picnixz commented

May 17, 2025

Copy link Copy Markdown

Member

I'm going to close this one: see #134149 (comment).

@picnixz picnixz closed this

May 17, 2025

@vedant713

Copy link Copy Markdown

Author

I'm sorry for this,fresh contributor still learning!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

docs

Documentation in the Doc dir

Projects

Docs PRs

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@vedant713 @picnixz