aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-11-17 15:46:47 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-11-17 15:46:59 -0500
commitcc95595e05c086a53a64eea2b17d135a80548106 (patch)
tree39c43d6a3aaf28fcfd050b25b8c68f8c5741dd0b /src/backend/utils/adt/ruleutils.c
parent8bc496c3b68f6b5296eed3ebccc6f322d4d0ba52 (diff)
downloadpostgresql-cc95595e05c086a53a64eea2b17d135a80548106.tar.gz
postgresql-cc95595e05c086a53a64eea2b17d135a80548106.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/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions