Error handling fix in interfaces/libpq/fe-secure.c

Поиск
Список
Период
Сортировка
От jtv@xs4all.nl
Тема Error handling fix in interfaces/libpq/fe-secure.c
Дата
Msg-id 14242.202.47.227.25.1120568743.squirrel@202.47.227.25
обсуждение исходный текст
Ответы Re: Error handling fix in interfaces/libpq/fe-secure.c
Re: Error handling fix in interfaces/libpq/fe-secure.c
Список pgsql-patches
Here's another one similar to what I described in my previous message.  In
libpq's pqsecure_read(), if SSL_read() returns -1 and sets an error of
SSL_ERROR_SYSCALL, errno may be polluted by libpq_gettext() before a
human-readable string is derived from it.  Also, pqReadData() will see the
wrong errno value after the call.

The attached patch fixes both by introducing a named variable to hold the
significant value of errno.


Jeroen

Вложения

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

Предыдущее
От: jtv@xs4all.nl
Дата:
Сообщение: patch: garbage error strings in libpq
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Python setof patch