Skip to content
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

BUG: Fix unpickling an empty ndarray with a non-zero dimension (#21067) #21140

Merged
merged 1 commit into from Mar 3, 2022

Conversation

charris
Copy link
Member

@charris charris commented Mar 2, 2022

Backport of #21067.

Changing num to the number of bytes in the input array, PyArray_NBYTES(self). Solves #21009.

  • Fixing nbyte size in methods.c:memcpy

  • Adding a test

  • Re-adding removed newline

  • Shrinking the test array to save memory

…y#21067)

Changing num to the number of bytes in the input array, PyArray_NBYTES(self). Solves numpy#21009.

* Fixing nbyte size in methods.c:memcpy

* Adding a test

* Re-adding removed newline

* Shrinking the test array to save memory
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Mar 2, 2022
@charris charris added this to the 1.22.3 release milestone Mar 2, 2022
@charris charris merged commit 954c9b5 into numpy:maintenance/1.22.x Mar 3, 2022
@charris charris deleted the backport-21067 branch March 3, 2022 01:48
@charris charris changed the title BUG: Fix unpickling an empty ndarray with a none-zero dimension (#21067) BUG: Fix unpickling an empty ndarray with a non-zero dimension (#21067) Mar 7, 2022
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.

None yet

1 participant