]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-1621: Avoid signed integer overflow in set_table_resize() (GH-9059) (GH-9198)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Oct 2018 22:50:34 +0000 (15:50 -0700)
committerVictor Stinner <vstinner@redhat.com>
Fri, 19 Oct 2018 22:50:34 +0000 (00:50 +0200)
commit6665802549006eb50c1a68c3489ee3aaf81d0c8e
tree527fbb564b8fc0e6e9005c9e0a3da9ef5b9cd155
parent76d31a3b966a618b2a0ee011372f18c992695fee
bpo-1621: Avoid signed integer overflow in set_table_resize() (GH-9059) (GH-9198)

Address a C undefined behavior signed integer overflow issue in set object table resizing.  Our -fwrapv compiler flag and practical reasons why sets are unlikely to get this large should mean this was never an issue but it was incorrect code that generates code analysis warnings.

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2018-09-11-15-19-37.bpo-1621.7o19yG.rst [new file with mode: 0644]
Objects/setobject.c