Skip to content

Conversation

charris
Copy link
Member

@charris charris commented Mar 7, 2025

Backport of #28407.

Bug fix to #27949.

  • Added a change to numpy/_core/src/multiarray/ctors.c to avoid segmentation fault
  • added a test to numpy/_core/tests/test_multiarray.py. If the test passes there's no longer a segmentation fault

…#28407)

``__array_interface__`` should typically not have more dimensions than NumPy supports, but unlike other malformed interfaces, this should fail gracefully if someone were to pass more.
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Mar 7, 2025
@charris charris added this to the 2.2.4 release milestone Mar 7, 2025
@charris charris merged commit 1e8a38b into numpy:maintenance/2.2.x Mar 7, 2025
67 of 70 checks passed
@charris charris deleted the backport-28407 branch March 7, 2025 19:32
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