pgsql: Fix null pointer dereference in "\c" psql command.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix null pointer dereference in "\c" psql command.
Date: 2015-07-09 00:46:23
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix null pointer dereference in "\c" psql command.

The psql crash happened when no current connection existed. (The second
new check is optional given today's undocumented NULL argument handling
in PQhost() etc.) Back-patch to 9.0 (all supported versions).

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/458ccbf2b3a9a8566a405368825954cf99b8dbef

Modified Files
--------------
src/bin/psql/command.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-07-09 03:17:14 Re: pgsql: Replace our hacked version of ax_pthread.m4 with latest upstream
Previous Message Heikki Linnakangas 2015-07-08 21:12:06 pgsql: Move pthread-tests earlier in the autoconf script.