pgsql: Add tests for various connection string issues - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Add tests for various connection string issues
Date
Msg-id E1bn3aO-0003j4-64@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add tests for various connection string issues

Add tests for consistent support of connection strings in frontend
programs as well as proper handling of unusual characters in database
and user names.  These tests were developed for the issues of
CVE-2016-5424.

To allow testing of names with spaces, change the pg_regress
command-line options --create-role and --dbname to split their arguments
by comma only, not space or comma as before.  Only commas were actually
used in existing uses.

Noah Misch, Michael Paquier, Peter Eisentraut

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8b845520fb0aa50fea7aae44a45cee1b6d87845d

Modified Files
--------------
src/bin/pg_dump/t/010_dump_connstr.pl | 142 ++++++++++++++++++++++++++++++++++
src/bin/pg_rewind/RewindTest.pm       |   2 +-
src/bin/scripts/t/010_clusterdb.pl    |   5 +-
src/bin/scripts/t/090_reindexdb.pl    |   9 ++-
src/bin/scripts/t/100_vacuumdb.pl     |   4 +-
src/bin/scripts/t/200_connstr.pl      |  38 +++++++++
src/test/perl/PostgresNode.pm         |  29 ++++++-
src/test/perl/TestLib.pm              |  14 ++++
src/test/regress/pg_regress.c         |  35 +++++++--
9 files changed, 266 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Make command_like output more compact
Next
From: Tom Lane
Date:
Subject: pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES