postgresql/src/test
Tom Lane fa9fc3a1b8 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:49 -04:00
..
examples Update copyright for 2014 2014-01-07 16:05:30 -05:00
isolation Fix portability issue in isolationtester grammar. 2015-05-27 19:14:55 -04:00
locale Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
mb Lots of doc corrections. 2012-04-23 22:43:09 -04:00
performance Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
perl Make tap tests store postmaster logs and handle vpaths correctly 2015-07-28 16:04:54 -04:00
regress Fix possible internal overflow in numeric multiplication. 2015-09-21 12:11:49 -04:00
thread Update copyright for 2014 2014-01-07 16:05:30 -05:00
Makefile Add isolation test to check-world and installcheck-world 2012-03-05 20:19:20 +02:00