pgsql: Fix corner cases in readlink() usage. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix corner cases in readlink() usage.
Date
Msg-id E1RYMK9-0001Mt-Ta@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix corner cases in readlink() usage.

Make sure all calls are protected by HAVE_READLINK, and get the buffer
overflow tests right.  Be a bit more paranoid about string length in
_tarWriteHeader(), too.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0d0ec527afec5e7bc9d709c40a37f295b627336a

Modified Files
--------------
src/backend/replication/basebackup.c |   52 ++++++++++++++++++++++++---------
src/backend/utils/adt/misc.c         |   12 +++++--
2 files changed, 46 insertions(+), 18 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix corner cases in readlink() usage.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add const qualifiers to node inspection functions