pgsql: Promote pg_dumpall shell/connstr quoting functions to src/fe_uti - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Promote pg_dumpall shell/connstr quoting functions to src/fe_uti
Date
Msg-id E1bWlGS-0006nE-8D@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Promote pg_dumpall shell/connstr quoting functions to src/fe_utils.

Rename these newly-extern functions with terms more typical of their new
neighbors.  No functional changes; a subsequent commit will use them in
more places.  Back-patch to 9.1 (all supported versions).  Back branches
lack src/fe_utils, so instead rename the functions in place; the
subsequent commit will copy them into the other programs using them.

Security: CVE-2016-5424

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/41f18f021a0882eccbeca62e2ed4b66c6b96e9c9

Modified Files
--------------
src/bin/pg_dump/pg_dumpall.c        | 158 ++----------------------------------
src/fe_utils/string_utils.c         | 143 ++++++++++++++++++++++++++++++++
src/include/fe_utils/string_utils.h |   7 +-
src/port/system.c                   |   3 +-
4 files changed, 157 insertions(+), 154 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Field conninfo strings throughout src/bin/scripts.
Next
From: Noah Misch
Date:
Subject: pgsql: Reject, in pg_dumpall, names containing CR or LF.