Skip to content

BUG: Fix out-of-bounds access when handling rank-zero ndarrays. #10101

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
Nov 27, 2017

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Nov 27, 2017

A rank-zero ndarray appears to be supported in principle (e.g. a = np.ndarray(shape=())). However, the code currently has undefined behaviour when creating iterators over such an array.

(A rank-zero tensor is a scalar.)

@tkoeppe tkoeppe changed the title Fix out-of-bounds access when handling rank-zero ndarrays. BUG: Fix out-of-bounds access when handling rank-zero ndarrays. Nov 27, 2017
@eric-wieser eric-wieser merged commit 2f366f1 into numpy:master Nov 27, 2017
@eric-wieser
Copy link
Member

Thanks @tkoeppe! Next time try to include the BUG: in the commit message too (but no big deal, since I can fix that online)

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Nov 27, 2017

@eric-wieser: Got it, thanks!

@tkoeppe tkoeppe deleted the ndarray branch November 27, 2017 17:05
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