Add tests for various connection string issues
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Aug 2016 18:44:23 +0000 (14:44 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 22 Sep 2016 16:00:00 +0000 (12:00 -0400)
commit8b845520fb0aa50fea7aae44a45cee1b6d87845d
tree92ccc8596edadb6fb529c9b1c9872451e5e185df
parente7010ce4794a4c12a6a8bfb0ca1de49b61046847
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
src/bin/pg_dump/t/010_dump_connstr.pl [new file with mode: 0644]
src/bin/pg_rewind/RewindTest.pm
src/bin/scripts/t/010_clusterdb.pl
src/bin/scripts/t/090_reindexdb.pl
src/bin/scripts/t/100_vacuumdb.pl
src/bin/scripts/t/200_connstr.pl [new file with mode: 0644]
src/test/perl/PostgresNode.pm
src/test/perl/TestLib.pm
src/test/regress/pg_regress.c