Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Commit9a646aa
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>
1 parent990efe0 commit9a646aa
File tree
3 files changed
+15
-2
lines changed- Lib
- test
- Misc/NEWS.d/next/Security
3 files changed
+15
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1420 | 1420 |
| |
1421 | 1421 |
| |
1422 | 1422 |
| |
1423 |
| - | |
| 1423 | + | |
1424 | 1424 |
| |
1425 | 1425 |
| |
1426 | 1426 |
| |
| |||
2120 | 2120 |
| |
2121 | 2121 |
| |
2122 | 2122 |
| |
2123 |
| - | |
| 2123 | + | |
2124 | 2124 |
| |
2125 | 2125 |
| |
2126 | 2126 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2548 | 2548 |
| |
2549 | 2549 |
| |
2550 | 2550 |
| |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
2551 | 2563 |
| |
2552 | 2564 |
| |
2553 | 2565 |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + |
0 commit comments
Comments
(0)