]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Jan 2019 02:25:23 +0000 (18:25 -0800)
committerGitHub <noreply@github.com>
Wed, 2 Jan 2019 02:25:23 +0000 (18:25 -0800)
commita5955b0895aa011b0beff1ceb6539b2ff8888425
tree9846b0db822b769c2c879e698addf36400ed0ba7
parent513fab2c67365e1693216dd59e4df0a5f6bfeb26
closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)

There is already a `Py_ssize_t i` defined at function scope that is used
for similar loops. By removing the local `int i` declaration that `i` is
used, which has the appropriate type.
(cherry picked from commit f8b534477a2a51d85ea1663530f685f805f2b247)

Co-authored-by: sth <sth.dev@tejp.de>
Misc/NEWS.d/next/Core and Builtins/2018-12-31-02-37-20.bpo-35623.24AQhY.rst [new file with mode: 0644]
Objects/listobject.c