pgsql: psql: fix startup crash caused by PSQLRC containing a tilde

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: psql: fix startup crash caused by PSQLRC containing a tilde
Date: 2013-04-04 16:57:02
Message-ID: E1UNnTC-00043o-5S@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: fix startup crash caused by PSQLRC containing a tilde

'strdup' the PSQLRC environment variable value before calling a routine
that might free() it.

Backpatch to 9.2, where the bug first appeared.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/48a2cd370e2610f0a196240aed9f5abd82d3dada

Modified Files
--------------
src/bin/psql/common.c | 6 +++---
src/bin/psql/common.h | 2 +-
src/bin/psql/startup.c | 11 ++++++-----
3 files changed, 10 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2013-04-04 22:29:07 pgsql: Fix off by one error in JSON extract path code.
Previous Message Heikki Linnakangas 2013-04-04 16:49:00 pgsql: Fix crash on compiling a regular expression with more than 32k c