postgresql/src/backend
Tom Lane 3dfffac701 Fix possible internal overflow in numeric multiplication.
mul_var() postpones propagating carries until it risks overflow in its
internal digit array.  However, the logic failed to account for the
possibility of overflow in the carry propagation step, allowing wrong
results to be generated in corner cases.  We must slightly reduce the
when-to-propagate-carries threshold to avoid that.

Discovered and fixed by Dean Rasheed, with small adjustments by me.

This has been wrong since commit d72f6c7503,
so back-patch to all supported branches.
2015-09-21 12:11:45 -04:00
..
access Add missing serial comma 2015-09-18 22:40:10 -04:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Update SQL features list 2015-09-12 00:07:56 -04:00
commands RLS refactoring 2015-09-15 15:49:40 -04:00
executor RLS refactoring 2015-09-15 15:49:40 -04:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Avoid use of float arithmetic in bipartite_match.c. 2015-08-23 13:02:19 -04:00
libpq Fix incorrect order of lock file removal and failure to close() sockets. 2015-08-02 14:55:04 -04:00
main Revoke support for strxfrm() that write past the specified array length. 2015-07-08 20:44:25 -04:00
nodes RLS refactoring 2015-09-15 15:49:40 -04:00
optimizer Fix setrefs.c comment properly. 2015-09-10 10:24:11 -04:00
parser Rename 'cmd' to 'cmd_name' in CreatePolicyStmt 2015-08-21 08:22:29 -04:00
po Translation updates 2015-08-03 14:10:33 -04:00
port Make WaitLatchOrSocket's timeout detection more robust. 2015-07-18 11:47:13 -04:00
postmaster Remove files signaling a standby promotion request at postmaster startup 2015-09-09 22:52:28 +09:00
regex Fix low-probability memory leak in regex execution. 2015-09-18 13:55:17 -04:00
replication Fix misc typos. 2015-09-05 11:36:18 +03:00
rewrite Enforce ALL/SELECT policies in RETURNING for RLS 2015-09-15 15:49:40 -04:00
snowball Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
storage Be more wary about partially-valid LOCALLOCK data in RemoveLocalLock(). 2015-09-20 16:48:44 -04:00
tcop Fix subtransaction cleanup after an outer-subtransaction portal fails. 2015-09-04 13:37:16 -04:00
tsearch pgindent run for 9.5 2015-05-23 21:35:49 -04:00
utils Fix possible internal overflow in numeric multiplication. 2015-09-21 12:11:45 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile AIX: Link the postgres executable with -Wl,-brtllib. 2015-07-15 21:00:30 -04:00
nls.mk Translation updates 2015-02-01 23:23:40 -05:00