forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit80d5d49
committed
Fix potential integer handling issue in radixtree.h.
Coverity complained about the integer handling issue; if we start withan arbitrary non-negative shift value, the loop may decrement it downto something less than zero before exiting. This commit adds anassertion to make sure the 'shift' is always 0 after the loop, anduses 0 as the shift to get the key chunk in the following operation.Introduced byee1b30f.Reported-by: Tom Lane as per coverityReviewed-by: Tom LaneDiscussion:https://postgr.es/m/2089517.1711299216%40sss.pgh.pa.us1 parent66c0185 commit80d5d49
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1615 | 1615 |
| |
1616 | 1616 |
| |
1617 | 1617 |
| |
| 1618 | + | |
1618 | 1619 |
| |
1619 | 1620 |
| |
1620 | 1621 |
| |
1621 |
| - | |
| 1622 | + | |
1622 | 1623 |
| |
1623 | 1624 |
| |
1624 | 1625 |
| |
|
0 commit comments
Comments
(0)