Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
python3-base.15920
CVE-2020-14422-ipaddress-hash-collision.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2020-14422-ipaddress-hash-collision.patch of Package python3-base.15920
From a487b700e87c67ad7bc40d631d225c2d3c485fed Mon Sep 17 00:00:00 2001 From: Sree Vaddi <441385+sreev@users.noreply.github.com> Date: Wed, 17 Jun 2020 16:51:59 -0700 Subject: [PATCH] [https://bugs.python.org/issue41004] Hash collisions --- Lib/ipaddress.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Lib/ipaddress.py +++ b/Lib/ipaddress.py @@ -1418,7 +1418,7 @@ class IPv4Interface(IPv4Address): return False def __hash__(self): - return self._ip ^ self._prefixlen ^ int(self.network.network_address) + return hash((self._ip, self._prefixlen, int(self.network.network_address))) __reduce__ = _IPAddressBase.__reduce__ @@ -2092,7 +2092,7 @@ class IPv6Interface(IPv6Address): return False def __hash__(self): - return self._ip ^ self._prefixlen ^ int(self.network.network_address) + return hash((self._ip, self._prefixlen, int(self.network.network_address))) __reduce__ = _IPAddressBase.__reduce__
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor