pgsql: psql: fix startup crash caused by PSQLRC containing a tilde - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: psql: fix startup crash caused by PSQLRC containing a tilde
Date
Msg-id E1UNnTC-00043o-5S@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: psql: fix startup crash caused by PSQLRC containing a tilde
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Fix off by one error in JSON extract path code.