Skip to content

[2.7] bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881) #13906

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 8, 2019

Conversation

eric-wieser
Copy link
Contributor

@eric-wieser eric-wieser commented Jun 8, 2019

itemsize can be zero when _type_ is an empty struct or length-0 array.

This line used to be length * itemsize < 0, which didn't exhibit this problem.

https://bugs.python.org/issue37188

`itemsize` can be zero when `_type_` is an empty struct or length-0 array.

This line used to be `length * itemsize < 0`, which didn't exhibit this problem.
@eric-wieser
Copy link
Contributor Author

Not done using cherry_picker because pip3.5 install cherry_picker installs code that does not run on python 3.5.

@skrah skrah merged commit 48f190f into python:2.7 Jun 8, 2019
@bedevere-bot
Copy link

@skrah: Please replace # with GH- in the commit message next time. Thanks!

@skrah
Copy link
Contributor

skrah commented Jun 8, 2019

@eric-wieser Thanks, not using cherry_picker is of course fine!

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.

4 participants