diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2018-09-11 23:18:01 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-11 23:18:01 (GMT) |
commit | 6c7d67ce83a62b5f0fe5c53a6df602827451bf7f (patch) | |
tree | 124db646c91085418871cb49a645c96c700503d9 /Misc | |
parent | 4859ba0d2ce4506fddc3f55f90f8dce031b3804f (diff) | |
download | cpython-6c7d67ce83a62b5f0fe5c53a6df602827451bf7f.zip cpython-6c7d67ce83a62b5f0fe5c53a6df602827451bf7f.tar.gz cpython-6c7d67ce83a62b5f0fe5c53a6df602827451bf7f.tar.bz2 |
bpo-1621: Avoid signed integer overflow in set_table_resize(). (GH-9059)
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.
<!-- issue-number: [bpo-1621](https://www.bugs.python.org/issue1621) -->
https://bugs.python.org/issue1621
<!-- /issue-number -->
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-09-11-15-19-37.bpo-1621.7o19yG.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-09-11-15-19-37.bpo-1621.7o19yG.rst b/Misc/NEWS.d/next/Core and Builtins/2018-09-11-15-19-37.bpo-1621.7o19yG.rst new file mode 100644 index 0000000..4047ff3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-09-11-15-19-37.bpo-1621.7o19yG.rst @@ -0,0 +1,2 @@ +Do not assume signed integer overflow behavior (C undefined behavior) when +performing set hash table resizing. |