Re: pg_dump: fix crash on error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump: fix crash on error
Дата
Msg-id 21781.1122439567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump: fix crash on error  (Neil Conway <neilc@samurai.com>)
Ответы Re: pg_dump: fix crash on error
Список pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> If pg_dump fails to connect to Postgres, it attempts to print an error
> message in ConnectDatabase():
> ...
> But if no database is explicitly specified, `dbname' is NULL, and libc
> is entitled to crash if you pass a NULL pointer to it for a %s
> formatting sequence (it actually does crash on Solaris, for example --
> per report from Omar Kilani).

[ scratches head... ]  Did this code change recently?  It's a tad hard
to believe that such a thing could have gone unnoticed for long.

            regards, tom lane

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: pg_dump: fix crash on error
Следующее
От: Neil Conway
Дата:
Сообщение: Re: pg_dump: fix crash on error