Re: patch: garbage error strings in libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: patch: garbage error strings in libpq
Дата
Msg-id 25723.1120658343@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: patch: garbage error strings in libpq  (Neil Conway <neilc@samurai.com>)
Ответы Re: patch: garbage error strings in libpq
Список pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> Right; my interpretation is that the "sequence point before function
> call" rule applies recursively. So in c(a(...), b(...)), there are in
> fact three sequence points, which precede the calls of a, b, and c.
> Shouldn't that be sufficient to ensure that the evaluation of
> libpq_gettext() is not interleaved with the evaluation of the other
> arguments to the printf()?

I think this is all irrelevant language-lawyering; jtv spotted the true
problem which is that we do not protect errno during the *first* call of
libpq_gettext.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error handling fix in interfaces/libpq/fe-secure.c
Следующее
От: Neil Conway
Дата:
Сообщение: Re: patch: garbage error strings in libpq