Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-134070: Fix mi_clz32/mi_ctz32 to prevent out-of-bounds read (GH-134149) #134157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from

Conversation

vedant713
Copy link

@vedant713 vedant713 commented May 17, 2025

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
Copy link
Member

picnixz commented May 17, 2025

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
Copy link
Member

picnixz commented May 17, 2025

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

@picnixz picnixz closed this May 17, 2025
@vedant713
Copy link
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
Labels
docs Documentation in the Doc dir
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants