Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
python3.33811
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.33811
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 @@ -1373,7 +1373,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))) @property def ip(self): @@ -2004,7 +2004,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))) @property def ip(self):
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