aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/regexp.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-09-12 06:46:01 +0900
committerMichael Paquier <michael@paquier.xyz>2018-09-12 06:46:01 +0900
commite7a2217978d9cbb2149bfcb4ef1e45716cfcbefb (patch)
tree284ebcfa72befbbab4c67950c85ce93902d7842e /src/backend/utils/adt/regexp.c
parent0d45cd96fd0f3387d1bcf7e6f873c73c4f251df8 (diff)
downloadpostgresql-e7a2217978d9cbb2149bfcb4ef1e45716cfcbefb.tar.gz
postgresql-e7a2217978d9cbb2149bfcb4ef1e45716cfcbefb.zip
Parse more strictly integer parameters from connection strings in libpq
The following parameters have been parsed in lossy ways when specified in a connection string processed by libpq: - connect_timeout - keepalives - keepalives_count - keepalives_idle - keepalives_interval - port Overflowing values or the presence of incorrect characters were not properly checked, leading to libpq trying to use such values and fail with unhelpful error messages. This commit hardens the parsing of those parameters so as it is possible to find easily incorrect values. Author: Fabien Coelho Reviewed-by: Peter Eisentraut, Michael Paquier Discussion: https://postgr.es/m/alpine.DEB.2.21.1808171206180.20841@lancre
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions