aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-07-19 11:52:32 -0500
committerNathan Bossart <nathan@postgresql.org>2024-07-19 11:52:32 -0500
commitb82791c8fc2c6bc9d69f4362d7b7f46b9876fa46 (patch)
tree419c2742823c01ff067de5dc9cfb4cf70ecdedd6 /src/backend/utils/adt/arrayfuncs.c
parente2e992820f104defeea421fd0927b763421a0396 (diff)
downloadpostgresql-b82791c8fc2c6bc9d69f4362d7b7f46b9876fa46.tar.gz
postgresql-b82791c8fc2c6bc9d69f4362d7b7f46b9876fa46.zip
Add overflow checks to money type.
None of the arithmetic functions for the the money type handle overflow. This commit introduces several helper functions with overflow checking and makes use of them in the money type's arithmetic functions. Fixes bug #18240. Reported-by: Alexander Lakhin Author: Joseph Koshakow Discussion: https://postgr.es/m/18240-c5da758d7dc1ecf0%40postgresql.org Discussion: https://postgr.es/m/CAAvxfHdBPOyEGS7s%2Bxf4iaW0-cgiq25jpYdWBqQqvLtLe_t6tw%40mail.gmail.com Backpatch-through: 12
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions