Files
postgresql/src/backend
Dean Rasheed e15c384d7a Fix numeric_power() when the exponent is INT_MIN.
In power_var_int(), the computation of the number of significant
digits to use in the computation used log(Abs(exp)), which isn't safe
because Abs(exp) returns INT_MIN when exp is INT_MIN. Use fabs()
instead of Abs(), so that the exponent is cast to a double before the
absolute value is taken.

Back-patch to 9.6, where this was introduced (by 7d9a4737c2).

Discussion: https://postgr.es/m/CAEZATCVd6pMkz=BrZEgBKyqqJrt2xghr=fNc8+Z=5xC6cgWrWA@mail.gmail.com
2021-01-05 11:08:59 +00:00
..
2020-01-01 12:21:45 -05:00
2020-07-30 09:17:00 -07:00
2020-11-09 12:34:05 +01:00
2020-06-07 15:06:51 +02:00
2020-01-01 12:21:45 -05:00
2018-03-30 17:33:04 -07:00
2020-01-01 12:21:45 -05:00
2020-09-14 13:14:53 +02:00