Skip to content

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