From: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
To: pgsql-odbc@postgresql.org
Subject: buffer overflow in 08.04.0100 und 08.04.0200?
Date: Thu, 21 Jan 2010 19:14:35 +0100
Message-ID: <4B58998B.4060101@gmx.de> (raw)
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
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: Jan-Peter.Seifert@gmx.de
Subject: Re: buffer overflow in 08.04.0100 und 08.04.0200?
In-Reply-To: <4B58998B.4060101@gmx.de>
References: <4B58998B.4060101@gmx.de>
* 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