FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.8] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033) by miss-islington · Pull Request #21221 · python/cpython · GitHub

Repository navigation

[3.8] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033) - #21221

Merged
miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-b30ee26-3.8
Jun 29, 2020
Merged

miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-b30ee26-3.8

Conversation

miss-islington commented Jun 29, 2020 •
edited
Loading

Copy link
Copy Markdown
Contributor

The hash() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26)

Co-authored-by: Ravi Teja P rvteja92@gmail.com

https://bugs.python.org/issue41004

Automerge-Triggered-By: @ericvsmith

pythonGH-21033)

The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26)

Co-authored-by: Ravi Teja P <rvteja92@gmail.com>

Copy link
Copy Markdown
Contributor Author

@rvteja92 and @ericvsmith: Status check is done, and it's a success ✅ .

miss-islington merged commit dc8ce8e into python:3.8 Jun 29, 2020
miss-islington deleted the backport-b30ee26-3.8 branch June 29, 2020 18:12
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL