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: int overflow in reshape, fixes #7455, fixes #7293 #7456

Merged
merged 1 commit into from
Mar 25, 2016

Conversation

jaimefrio
Copy link
Member

No description provided.

return -1;
}
}
else {
s_known *= dimensions[i];
else if(npy_mul_with_overflow_intp(&s_known, s_known, dimensions[i])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space, but everything looks good too me.

@jaimefrio
Copy link
Member Author

Fixed the spacing, thanks for the review. From looking at all those shape functions, I have the feeling that there has to be a simpler, cleaner way of rewriting all of that. Maybe some other day...

@seberg
Copy link
Member

seberg commented Mar 25, 2016

Hehe, probably, though they also all have their quirks you have to keep alive probably ;).

@seberg
Copy link
Member

seberg commented Mar 25, 2016

Anyway, thanks!

@seberg seberg merged commit 4b200d2 into numpy:master Mar 25, 2016
@jaimefrio jaimefrio deleted the reshape_segfault branch March 25, 2016 16:54
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.

None yet

3 participants