Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.5] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6In…#21233

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
larryhastings merged 3 commits intopython:3.5fromtapakund:3.5
Aug 4, 2020

Conversation

tapakund
Copy link

@tapakundtapakund commentedJun 30, 2020
edited by bedevere-bot
Loading

…terface (GH-21033)

Thehash() 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 commitb30ee26)

Co-authored-by: Ravi Teja Prvteja92@gmail.com

Signed-off-by: Tapas Kundutkundu@vmware.com

https://bugs.python.org/issue41004

@corona10
Copy link
Member

Sorry, we only accept the security patch for 3.5-3.7.

I close this PR cc@ericvsmith

ref:https://devguide.python.org/#status-of-python-branches

Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Since this issue is reported as theCVE-2020-14422.
I am okay to merge this PR as the security issue.

But waiting for@ned-deily and@ericvsmith 's comment :)

@ned-deily
Copy link
Member

The decision whether to merge to 3.5 is up to the 3.5 release manager,@larryhastings.

@ned-deily
Copy link
Member

As I noted on the bpo issue, I think the NEWS blurb should be updated to include the CVE.

…terface (pythonGH-21033)The __hash__() methods of classes IPv4Interface and IPv6Interface had issueof generating constant hash values of 32 and 128 respectively causing hash collisions.The fix uses the hash() function to generate hash values for the objectsinstead of XOR operation(cherry picked from commitb30ee26)Co-authored-by: Ravi Teja P <rvteja92@gmail.com>Signed-off-by: Tapas Kundu <tkundu@vmware.com>
@tapakund
Copy link
Author

@larryhastings Please help to review the backport to 3.5 of a security fix. Thanks!

@larryhastingslarryhastings merged commit11d258c intopython:3.5Aug 4, 2020
@bedevere-bot
Copy link

@larryhastings: Please replace# withGH- in the commit message next time. Thanks!

@larryhastings
Copy link
Contributor

Thanks for the backport! And, for the record,@ericvsmith is a great guy, but he is not nor has ever been a Python release manager.

@HanaMahmoud122
Copy link

print(‘Hello my friend’)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@corona10corona10corona10 approved these changes

@ericvsmithericvsmithAwaiting requested review from ericvsmith

@larryhastingslarryhastingsAwaiting requested review from larryhastings

Assignees
No one assigned
Labels
type-securityA security issue
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@tapakund@corona10@ned-deily@bedevere-bot@larryhastings@HanaMahmoud122@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp