From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add tests for various connection string issues |
Date: | 2016-09-22 12:58:44 |
Message-ID: | E1bn3aO-0003j4-64@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-09-22 15:35:15 | pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES |
Previous Message | Peter Eisentraut | 2016-09-21 16:24:21 | pgsql: Make command_like output more compact |