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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: psql: fix startup crash caused by PSQLRC containing a tilde
Дата
Msg-id E1UNnTC-00043q-6e@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/39d4c764da3d4dd74238d82b0e5ccd1030ebf9f7

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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix crash on compiling a regular expression with more than 32k c
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: psql: fix startup crash caused by PSQLRC containing a tilde