pgsql: Fix corner cases in readlink() usage.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix corner cases in readlink() usage.
Date: 2011-12-07 18:34:33
Message-ID: E1RYMK9-0001Mt-Ta@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-12-07 19:47:56 pgsql: Add const qualifiers to node inspection functions
Previous Message Magnus Hagander 2011-12-07 11:20:18 pgsql: Avoid using readlink() on platforms that don't support it