Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

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

Appearance settings

BUG: fix heap buffer overflow in np.strings.find #28804

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

ngoldbaum
Copy link
Member

@ngoldbaum ngoldbaum commented Apr 23, 2025

Fixes #28791

Multiplying by sizeof(npy_ucs4) here is nonsense. I'm the one who added this if statement originally. No idea what I was thinking.

@ngoldbaum ngoldbaum requested a review from lysnikolaou April 23, 2025 17:53
@ngoldbaum ngoldbaum added the 09 - Backport-Candidate PRs tagged should be backported label Apr 23, 2025
Copy link
Member

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@charris charris merged commit 441e280 into numpy:main Apr 24, 2025
73 checks passed
@charris
Copy link
Member

charris commented Apr 24, 2025

Thanks Nathan.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: ASAN detects heap-buffer-overflow from numpy.strings.find
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.