Skip to content

BUG: handle resize of 0d array #9263

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
Jun 17, 2017

Conversation

charris
Copy link
Member

@charris charris commented Jun 17, 2017

Backport of #9217.

Empty arrays have NULL for stride and dimension, PyArray_Resize assigns
it a valid pointer from RENEW which when passed back to the allocation
cache does not have the minimum size of 16 bytes it requires leading to
out of bound accesses.

Closes gh-9216

0d arrays have NULL for stride and dimension, PyArray_Resize assigns
it a valid pointer from RENEW which when passed back to the allocation
cache does not have the minimum size of 16 bytes it requires leading to
out of bound accesses.

Closes numpygh-9216
@charris charris merged commit 9758e76 into numpy:maintenance/1.13.x Jun 17, 2017
@charris charris deleted the backport-9217 branch June 17, 2017 22:42
@charris charris added this to the 1.13.1 release milestone Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants