postgresql/src/interfaces/libpq
Michael Paquier 4f4061b2dd Fix parsing of integer values for connection parameters in libpq
Commit e7a2217 has introduced stricter checks for integer values in
connection parameters for libpq.  However this failed to correctly check
after trailing whitespaces, while leading whitespaces were discarded per
the use of strtol(3).  This fixes and refactors the parsing logic to
handle both cases consistently.  Note that trying to restrict the use of
trailing whitespaces can easily break connection strings like in ECPG
regression tests (these have allowed me to catch the parsing bug with
connect_timeout).

Author: Michael Paquier
Reviewed-by: Lars Kanis
Discussion: https://postgr.es/m/a9b4cbd7-4ecb-06b2-ebd7-1739bbff3217@greiz-reinsdorf.de
Backpatch-through: 12
2019-10-21 11:17:13 +09:00
..
po Translation updates 2019-06-17 15:30:20 +02:00
test Update copyright for 2019 2019-01-02 12:44:25 -05:00
.gitignore Add .gitignore entry for a derived file created by "make distprep". 2019-01-10 14:20:28 -05:00
exports.txt Put back pqsignal() as an exported libpq symbol. 2019-10-10 14:24:56 -04:00
fe-auth-scram.c Fix use of term "verifier" 2019-10-12 21:41:59 +02:00
fe-auth.c Fix use of term "verifier" 2019-10-12 21:41:59 +02:00
fe-auth.h Fix use of term "verifier" 2019-10-12 21:41:59 +02:00
fe-connect.c Fix parsing of integer values for connection parameters in libpq 2019-10-21 11:17:13 +09:00
fe-exec.c Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00
fe-gssapi-common.c libpq: ccache -> credential cache 2019-09-06 09:15:35 +02:00
fe-gssapi-common.h libpq: ccache -> credential cache 2019-09-06 09:15:35 +02:00
fe-lobj.c Use consistent style for checking return from system calls 2019-07-07 15:28:49 +02:00
fe-misc.c Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00
fe-print.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
fe-protocol2.c Restructure libpq's handling of send failures. 2019-03-19 16:20:28 -04:00
fe-protocol3.c Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
fe-secure-common.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
fe-secure-common.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
fe-secure-gssapi.c GSSAPI error message improvements 2019-09-19 15:09:49 +02:00
fe-secure-openssl.c Remove code relevant to OpenSSL 0.9.6 in be/fe-secure-openssl.c 2019-09-28 15:22:49 +09:00
fe-secure.c GSSAPI encryption support 2019-04-03 15:02:33 -04:00
legacy-pqsignal.c Put back pqsignal() as an exported libpq symbol. 2019-10-10 14:24:56 -04:00
libpq-events.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
libpq-events.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
libpq-fe.h Restructure libpq code to remove some duplicity 2019-09-10 12:14:24 -03:00
libpq-int.h Add libpq parameter 'channel_binding'. 2019-09-23 14:03:35 -07:00
libpq.rc.in Stamp HEAD as 13devel. 2019-07-01 12:50:55 -04:00
Makefile Clean up MinGW def file generation 2019-10-20 10:19:13 +02:00
nls.mk Add missing source files to nls.mk 2019-07-06 15:03:21 +02:00
pg_service.conf.sample Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pqexpbuffer.c Fix typos. 2019-05-26 18:28:18 +05:30
pqexpbuffer.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
pthread-win32.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
README Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win32.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
win32.h Remove support for bcc and msvc standalone libpq builds 2017-04-11 15:22:21 +02:00

src/interfaces/libpq/README

This directory contains the C version of Libpq, the POSTGRES frontend library.