summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/amutils.c
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2021-07-30 13:50:23 -0400
committerJohn Naylor <john.naylor@postgresql.org>2021-07-30 16:34:33 -0400
commitcfcb0ceabde11dc6bf57185f72a2b14132631dfd (patch)
tree143dd66348eb0e0692b8133ed1fd66c71c02a017 /src/backend/utils/adt/amutils.c
parent32d182dd0da9628a4bc1515b69694d6e361a8de4 (diff)
Fix range check in ECPG numeric to int conversion
The previous coding guarded against -INT_MAX instead of INT_MIN, leading to -2147483648 being rejected as out of range. Per bug #17128 from Kevin Sweet Discussion: https://www.postgresql.org/message-id/flat/17128-55a8a879727a3e3a%40postgresql.org Reviewed-by: Tom Lane Backpatch to all supported branches
Diffstat (limited to 'src/backend/utils/adt/amutils.c')
0 files changed, 0 insertions, 0 deletions