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

Skip to content

BUG: fix NPY_cast_info error handling in choose #24484

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
Aug 22, 2023

Conversation

ngoldbaum
Copy link
Member

Closes #24459.

cast_info needs to be declared before the first goto fail, otherwise the xfree in the fail block receives uninitialized data.

@tylerjereddy sorry I missed this when we were reviewing #24188, going to try to keep this pattern in mind when looking at code that uses the cast C API in the future.

Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

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

Ah that makes sense, LGTM if CI passes.

@charris charris merged commit 0450bc4 into numpy:main Aug 22, 2023
@charris
Copy link
Member

charris commented Aug 22, 2023

Thanks Nathan.

@ngoldbaum ngoldbaum added the 09 - Backport-Candidate PRs tagged should be backported label Aug 23, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 24, 2023
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: Segfault in trimesh's test suite with numpy 1.26.0b1
3 participants