Skip to content

bpo-36285: Array module int overflow#12317

Merged
serhiy-storchaka merged 10 commits into
python:masterfrom
sth:arraymodule-int-overflow
Mar 20, 2019
Merged

bpo-36285: Array module int overflow#12317
serhiy-storchaka merged 10 commits into
python:masterfrom
sth:arraymodule-int-overflow

Conversation

@sth

@sth sth commented Mar 14, 2019

Copy link
Copy Markdown
Contributor

Several loops use int variables instead of Py_ssize_t. The one in array.remove() definitely can lead to a crash, for the others I haven't verified if it actually crashes. But using Py_ssize_t instead of int is more correct in any case.

I also added a bunch of tests for arrays >=2G.

https://bugs.python.org/issue36285

Comment thread Lib/test/test_array.py Outdated
@serhiy-storchaka serhiy-storchaka merged commit aa3ecb8 into python:master Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants