[patch] fix buffer overrun in logging, and code cleanup

Поиск
Список
Период
Сортировка
От Tsunakawa, Takayuki
Тема [patch] fix buffer overrun in logging, and code cleanup
Дата
Msg-id 0A3221C70F24FB45833433255569204D1F57A775@G01JPEXMBYT05
обсуждение исходный текст
Ответы Re: [patch] fix buffer overrun in logging, and code cleanup
Список pgsql-odbc
Hello,

While I was troubleshooting some user problem and trying to figure out why mylog_xxx.log is not created, I found a tiny
bug. The buffers for holding the full path for MyLog and CommLog are small -- only 80 bytes.  If you specify a long
pathfor Logdir, the buffer overrun occurs.  Please find the attached patch mylog_buffer_overrun.patch. 

The other patch mylog_cleanup.patch removes code which are unused or unnecessary anymore.  I'd like to make the code as
leanas possible, so that it makes code reading and searching easier and faster.  This patch removes about 120 lines. 

Regards
Takayuki Tsunakawa


Вложения

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

Предыдущее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: Re: PostgreSQL: SQLSetPos fails with SetPos update return error.
Следующее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: Re: ADO CommandTimeout vs Postgres statement_timeout parameter