From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: [patch] fix buffer overrun in logging, and code cleanup
Date: Fri, 27 May 2016 16:54:24 +0900
Message-ID: <5747FD30.8080600@dream.email.ne.jp> (raw)
In-Reply-To: <0A3221C70F24FB45833433255569204D1F57A775@G01JPEXMBYT05>
References: <0A3221C70F24FB45833433255569204D1F57A775@G01JPEXMBYT05>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hi,
I would examine the patch.
However forcelog() exists in msdtc_enlist.cpp at first glance.
regards,
Hiroshi Inoue
On 2016/05/26 11:40, Tsunakawa, Takayuki wrote:
> 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 path for 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 lean as possible, so that it makes code reading and searching easier and faster. This patch removes about 120 lines.
>
> Regards
> Takayuki Tsunakawa
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: h-inoue@dream.email.ne.jp, tsunakawa.takay@jp.fujitsu.com
Subject: Re: [patch] fix buffer overrun in logging, and code cleanup
In-Reply-To: <5747FD30.8080600@dream.email.ne.jp>
References: <0A3221C70F24FB45833433255569204D1F57A775@G01JPEXMBYT05> <5747FD30.8080600@dream.email.ne.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox