Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbtAC-0000w5-Kw for pgsql-odbc@arkaria.postgresql.org; Mon, 13 May 2013 13:51:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UbtAB-0003bf-GV for pgsql-odbc@arkaria.postgresql.org; Mon, 13 May 2013 13:51:39 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbtA4-0003VH-1L for pgsql-odbc@postgresql.org; Mon, 13 May 2013 13:51:32 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ubt9x-0008E0-CW for pgsql-odbc@postgresql.org; Mon, 13 May 2013 13:51:31 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 7D51528131; Mon, 13 May 2013 06:51:24 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 7A14318075; Mon, 13 May 2013 06:51:24 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 38D6012000A; Mon, 13 May 2013 06:56:34 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Mon, 13 May 2013 06:56:32 -0700 (PDT) Message-ID: <5190EFD8.908@vmware.com> Date: Mon, 13 May 2013 16:51:20 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Jan-Peter Seifert CC: pgsql-odbc@postgresql.org Subject: Re: psqlODBC 09.01.0100 Unicode version still crashes on long server messages? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -5.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 On 13.05.2013 16:15, Jan-Peter Seifert wrote: > Hello, > it seems when using the Unicode version of the driver it crashes when: > > log_statement ='all' > > client_min_messages< notice > > and a long query ( e.g. create function ) is sent to the server. > Did not test it with a long erronous query sent to the server without using the > settings above. But I guess this would cause the driver to crash as well. Works for me. Can you provide a test case, please? > Back in psqlODBC v08.04.0200 ANSI there was a crash when the server message was > longer than ~4096 bytes. > I guess this had been fixed in v09.00.0100 with this patch: > 6.) Removed the use of misused strcat_s together with snprintf_s (bug report > from Jap-Peter Seifert) and use strlcat instead of strncat. > Could it be that this had been fixed in the ANSI version only? Don't think so. But it wouldn't surprise me if there are still similar bugs lurking elsewhere in the code... - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc