Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 6B776633601 for ; Thu, 21 Jan 2010 21:26:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 12811-04 for ; Fri, 22 Jan 2010 01:26:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 21B48632DFB for ; Thu, 21 Jan 2010 21:26:07 -0400 (AST) Received: (qmail 19939 invoked by uid 512); 22 Jan 2010 01:26:03 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.252) by sd2.tpf-fw-c.co.jp with SMTP; 22 Jan 2010 01:26:03 -0000 Message-ID: <4B58FEA0.2040901@tpf.co.jp> Date: Fri, 22 Jan 2010 10:25:52 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Jan-Peter Seifert CC: pgsql-odbc@postgresql.org Subject: Re: buffer overflow in 08.04.0100 und 08.04.0200? References: <4B58998B.4060101@gmx.de> In-Reply-To: <4B58998B.4060101@gmx.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.274 tagged_above=-10 required=5 tests=AWL=1.325, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/18 X-Sequence-Number: 10181 Hi, Could you send me directly the Mylog output? regards, Hiroshi Inoue Jan-Peter Seifert wrote: > Hello, > > we ran into a problem with the new versions of psqlODBC (08.04.0100 and > 08.04.0200), which causes a crash. > For example one of our functions that dynamically generates queries does > a 'RAISE NOTICE' of the query string before executing it. Sometimes this > string gets very long and the driver crashes. In the CommLog the string > is cut. The limit seems to be 4095. It somehow seems to be connected to > the global socket size which obviously is 4096? > However, it's strange that 8.3.400 is not crashing although the string > seems to be truncated as well. > > We checked it with a function that is simply 'raise noticing' a string > longer than 4100 characters/bytes. > > ------------------------------------- > CREATE OR REPLACE FUNCTION teststringlength() RETURNS CHAR AS > > $BODY$ > > DECLARE > BEGIN > > RAISE NOTICE ' ... more than about 4100 characters ...'; > > RETURN 'Success'; > > END; > $BODY$ > > LANGUAGE 'plpgsql' VOLATILE; > ----------------------------------------------- > > It gets executed with 'SELECT teststringlength();' within a > psqlODBC-connection that uses the same ODBC data source as the other > psqlODBC-Version. In 08.04.0100 and 08.04.0200 it crashes ... in 8.3.400 > it doesn't. > Is there maybe a new parameter that is missing, because we reused the > old data source (I'll check tomorrow)? > > Thank you very much for any hints, > > Peter