Skip site navigation (1) Skip section navigation (2)

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-0001Mv-Um@gemulon.postgresql.org (view raw or flat)
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
------
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(-)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group