forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7df6dc4
committed
Fix possible internal overflow in numeric division.
div_var_fast() postpones propagating carries in the same way as mul_var(),so it has the same corner-case overflow risk we fixed in246693e,namely that the size of the carries has to be accounted for when settingthe threshold for executing a carry propagation step. We've not deviseda test case illustrating the brokenness, but the required fix seems clearenough. Like the previous fix, back-patch to all active branches.Dean Rasheed1 parentfaf18a9 commit7df6dc4
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4875 | 4875 |
| |
4876 | 4876 |
| |
4877 | 4877 |
| |
4878 |
| - | |
4879 |
| - | |
| 4878 | + | |
| 4879 | + | |
| 4880 | + | |
| 4881 | + | |
| 4882 | + | |
| 4883 | + | |
| 4884 | + | |
| 4885 | + | |
4880 | 4886 |
| |
4881 | 4887 |
| |
4882 | 4888 |
| |
| |||
4902 | 4908 |
| |
4903 | 4909 |
| |
4904 | 4910 |
| |
4905 |
| - | |
| 4911 | + | |
4906 | 4912 |
| |
4907 | 4913 |
| |
4908 | 4914 |
| |
|
0 commit comments
Comments
(0)