Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jun 29, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 29, 2020

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>
@miss-islington
Copy link
Contributor Author

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

@miss-islington miss-islington merged commit 9a646aa into python:3.9 Jun 29, 2020
@miss-islington miss-islington deleted the backport-b30ee26-3.9 branch June 29, 2020 18:15
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.

None yet

5 participants