Skip to content

BUG: avoid segfaults when legacy copyswap slot is not defined (#32151) - #32221

Merged
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-32151
Aug 7, 2026
Merged

BUG: avoid segfaults when legacy copyswap slot is not defined (#32151)#32221
charris merged 1 commit into
numpy:maintenance/2.5.xfrom
charris:backport-32151

Conversation

@charris

@charris charris commented Aug 7, 2026

Copy link
Copy Markdown
Member

Backport of #32151.

PR summary

Towards addressing #24859 (see also #30795 ping @SwayamInSync). This avoids segfaults in many operations if copyswap or copyswapn isn't defined. Also see #32150 which does the same thing along with a small behavior change in np.byteswap.

AI Disclosure

I used an AI model to search the codebase and debug/test the fixes.

@charris charris added this to the 2.5.2 release milestone Aug 7, 2026
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Aug 7, 2026
@charris
charris merged commit ecf599c into numpy:maintenance/2.5.x Aug 7, 2026
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants