pgsql: Add tests for various connection string issues

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Add tests for various connection string issues
Дата
Msg-id E1bn3aO-0003j4-64@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Make command_like output more compact
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES