diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-17 15:46:47 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-17 15:46:47 -0500 |
commit | 5f10b7a604c87fc61a2c20a56552301f74c9bd5f (patch) | |
tree | 3d73f5b266ff532117ffc9b15778f8fa16b1dab8 /src/tutorial | |
parent | c5ec4064120c12c7b8cd4772d0b9f571f5dd40b4 (diff) | |
download | postgresql-5f10b7a604c87fc61a2c20a56552301f74c9bd5f.tar.gz postgresql-5f10b7a604c87fc61a2c20a56552301f74c9bd5f.zip |
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 in 246693e5ae8a36f0,
namely that the size of the carries has to be accounted for when setting
the threshold for executing a carry propagation step. We've not devised
a test case illustrating the brokenness, but the required fix seems clear
enough. Like the previous fix, back-patch to all active branches.
Dean Rasheed
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions