diff options
author | Nathan Bossart <nathan@postgresql.org> | 2024-03-20 13:31:58 -0500 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2024-03-20 13:31:58 -0500 |
commit | 80686761c49d5194d224b344e968c26981611726 (patch) | |
tree | 7ff7640bcf58bae4213cfe38e746035c7c89b82f /src/backend/utils/adt/jsonpath_exec.c | |
parent | 9acae56ce0b0812f3e940cf1f87e73e8d5784e78 (diff) | |
download | postgresql-80686761c49d5194d224b344e968c26981611726.tar.gz postgresql-80686761c49d5194d224b344e968c26981611726.zip |
Avoid overflow in MaybeRemoveOldWalSummaries().
This commit limits the maximum value of wal_summary_keep_time to
INT_MAX / SECS_PER_MINUTE to avoid overflow when it is converted to
seconds. In passing, use the HOURS_PER_DAY, MINS_PER_HOUR, and
SECS_PER_MINUTE macros in the code for this GUC instead of hard-
coding those values.
Discussion: https://postgr.es/m/20240314210010.GA3056455%40nathanxps13
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
0 files changed, 0 insertions, 0 deletions