Commit 94bb6c4
committed
Fix overflow danger in SampleHeapTupleVisible(), take 2
28328ec addressed one overflow danger in
SampleHeapTupleVisible() but introduced another, albeit a less likely
one. Modify the binary search code to remove this danger.
Reported-by: Richard Guo
Reviewed-by: Richard Guo, Ranier Vilela
Discussion: https://postgr.es/m/CAMbWs4_bE%2BNscChbKWzw6HZOipCUyXfA5133qvoXQ654D3B2gQ%40mail.gmail.com1 parent 38c579b commit 94bb6c4
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2574 | 2574 | | |
2575 | 2575 | | |
2576 | 2576 | | |
2577 | | - | |
2578 | | - | |
2579 | | - | |
2580 | | - | |
2581 | | - | |
| 2577 | + | |
| 2578 | + | |
2582 | 2579 | | |
2583 | 2580 | | |
2584 | 2581 | | |
| |||
2589 | 2586 | | |
2590 | 2587 | | |
2591 | 2588 | | |
2592 | | - | |
2593 | | - | |
2594 | | - | |
2595 | | - | |
| 2589 | + | |
2596 | 2590 | | |
2597 | | - | |
| 2591 | + | |
2598 | 2592 | | |
2599 | 2593 | | |
2600 | 2594 | | |
2601 | 2595 | | |
2602 | 2596 | | |
2603 | | - | |
| 2597 | + | |
2604 | 2598 | | |
2605 | 2599 | | |
2606 | 2600 | | |
| |||
0 commit comments