Re: [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty
Дата
Msg-id 21239.1070638673@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty  (Michael Wildpaner <mike@rainbow.studorg.tuwien.ac.at>)
Ответы Re: [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Michael Wildpaner <mike@rainbow.studorg.tuwien.ac.at> writes:
> +    /* fail if there is nothing to search in */
> +    if ((user_sorted == NULL) || (user_length == 0))
> +        return NULL;

Hm, Solaris' bsearch() fails on empty input?  How bizarre.
Easily worked around though --- thanks for the report!

I suspect we'd better put a defense in get_group_line as well.
It looks like there are no other places at risk in the backend.
        regards, tom lane


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

Предыдущее
От: Michael Wildpaner
Дата:
Сообщение: [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty