pgsql: Fix corner cases in readlink() usage.

Started by Tom Laneover 14 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/85d85ff7ef04510f24fe5897e5535d765d7a293c

Modified Files
--------------
src/backend/replication/basebackup.c | 52 ++++++++++++++++++++++++---------
1 files changed, 38 insertions(+), 14 deletions(-)