diff options
author | sth <sth.dev@tejp.de> | 2019-01-02 02:01:54 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-01-02 02:01:54 (GMT) |
commit | f8b534477a2a51d85ea1663530f685f805f2b247 (patch) | |
tree | 4451d5f9b3737e1bedb15f445ba10e3f2e8de007 /Misc | |
parent | 7e3fb40b923cb09ecc67816d3191197868593737 (diff) | |
download | cpython-f8b534477a2a51d85ea1663530f685f805f2b247.zip cpython-f8b534477a2a51d85ea1663530f685f805f2b247.tar.gz cpython-f8b534477a2a51d85ea1663530f685f805f2b247.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-12-31-02-37-20.bpo-35623.24AQhY.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-12-31-02-37-20.bpo-35623.24AQhY.rst b/Misc/NEWS.d/next/Core and Builtins/2018-12-31-02-37-20.bpo-35623.24AQhY.rst new file mode 100644 index 0000000..6e3df4d --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-12-31-02-37-20.bpo-35623.24AQhY.rst @@ -0,0 +1 @@ +Fix a crash when sorting very long lists. Patch by Stephan Hohe. |