From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add tests for various connection string issues
Date: Thu, 22 Sep 2016 12:58:44 +0000
Message-ID: <E1bn3aO-0003j4-64@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Add tests for various connection string issues
In-Reply-To: <E1bn3aO-0003j4-64@gemulon.postgresql.org>
References: <E1bn3aO-0003j4-64@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox