- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit24bf2ee
committed
Fix bug in calculations of hash join buckets.
Commit8cce08f used a left-shifton a literal of 1 that could (in large allocations) be shifted by31 or more bits. This was assigned to a local variable that wasalready declared to be a long to protect against overruns of int,but the literal in this shift needs to be declared long to allow itto work correctly in some compilers.Backpatch to 9.5, where the bug was introduced.Report and patch by KaiGai Kohei, slighly modified based ondiscussion.1 parent4c3754f commit24bf2ee
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
518 | 518 |
| |
519 | 519 |
| |
520 | 520 |
| |
521 |
| - | |
| 521 | + | |
522 | 522 |
| |
523 | 523 |
| |
524 | 524 |
| |
|
0 commit comments
Comments
(0)