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

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: Fix null pointer dereference in "\c" psql command.
Дата
Msg-id E1ZCzyp-0008RA-8U@gemulon.postgresql.org
обсуждение исходный текст
Список 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_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/fb990ce6c7d99d329843e5d70d4cdaf8d0825b38

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Noah Misch
Дата:
Сообщение: pgsql: Fix null pointer dereference in "\c" psql command.
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Revoke support for strxfrm() that write past the specified array