Thread: pgsql: Add tests for various connection string issues

pgsql: Add tests for various connection string issues

From
Peter Eisentraut
Date:
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(-)