[3.7] bpo-1621: Avoid signed integer overflow in set_table_resize(). (GH-9059)#9198
Merged
vstinner merged 1 commit intopython:3.7from Oct 19, 2018
Merged
Conversation
…nGH-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 --> (cherry picked from commit 6c7d67c) Co-authored-by: Sergey Fedoseev <[email protected]>
Contributor
Author
|
@sir-sigurd: Status check is done, and it's a success ✅ . |
Member
|
@gpshead Is this ready to merge for 3.7? |
Member
|
Yes, though I'd wait until after you do the 3.7.1 release. No need for this to go in during an rc. |
Member
|
This backport is sitting for weeks. It has been properly validated by our buildbot fleet (on the master branch) and everything is fine. So I'm confident that it's safe for Python 3.7. I just merged the 3.6 backport as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
https://bugs.python.org/issue1621
(cherry picked from commit 6c7d67c)
Co-authored-by: Sergey Fedoseev [email protected]