Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6CbL-0004VI-OC for pgsql-odbc@arkaria.postgresql.org; Fri, 27 May 2016 07:54:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6CbL-0007nc-84 for pgsql-odbc@arkaria.postgresql.org; Fri, 27 May 2016 07:54:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6CbK-0007nR-Us for pgsql-odbc@postgresql.org; Fri, 27 May 2016 07:54:34 +0000 Received: from mail1.asahi-net.or.jp ([202.224.39.197]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6CbG-0003wO-PJ for pgsql-odbc@postgresql.org; Fri, 27 May 2016 07:54:34 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id BBABB1AC49; Fri, 27 May 2016 16:54:22 +0900 (JST) Subject: Re: [patch] fix buffer overrun in logging, and code cleanup To: "Tsunakawa, Takayuki" References: <0A3221C70F24FB45833433255569204D1F57A775@G01JPEXMBYT05> Cc: "pgsql-odbc@postgresql.org" From: "Inoue, Hiroshi" Message-ID: <5747FD30.8080600@dream.email.ne.jp> Date: Fri, 27 May 2016 16:54:24 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <0A3221C70F24FB45833433255569204D1F57A775@G01JPEXMBYT05> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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