[patch] fix buffer overrun in logging, and code cleanup - Mailing list pgsql-odbc

From Tsunakawa, Takayuki
Subject [patch] fix buffer overrun in logging, and code cleanup
Date
Msg-id 0A3221C70F24FB45833433255569204D1F57A775@G01JPEXMBYT05
Whole thread Raw
Responses Re: [patch] fix buffer overrun in logging, and code cleanup  ("Inoue, Hiroshi" <h-inoue@dream.email.ne.jp>)
List 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


Attachment

pgsql-odbc by date:

Previous
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: PostgreSQL: SQLSetPos fails with SetPos update return error.
Next
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: ADO CommandTimeout vs Postgres statement_timeout parameter