From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-odbc@postgresql.org
Subject: Re: How to fix buffer overrun in Windows x32
Date: Tue, 22 Sep 2015 15:45:06 +0300
Message-ID: <56014D52.1040000@iki.fi> (raw)
In-Reply-To: <C56F7A039E424B3EAD90D26779B17CCF@dell2>
References: <1B88854920C942948F943E26B452E3A4@dell2>
<560103D8.2090603@iki.fi>
<C56F7A039E424B3EAD90D26779B17CCF@dell2>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 09/22/2015 11:03 AM, Andrus wrote:
> Hi!
>
>> Can you create a little test program to reproduce that? That would be best.
>> If that's not possible, please enable the Debug option for the datasource,
>> and send over the log.
>
> Testcase is
>
> http://stackoverflow.com/questions/32650613/how-to-fix-buffer-overrun-in-psqlodbc-driver
>
> If you dont have VFP you can copy postgresql code from it and pass to odbc
> execdirect in C or other language.
> I uploaded logs week ago to odbc issue tracker into one old closed issue.
Ah, found it finally! There was a buffer overflow of two bytes, in
SC_create_errorinfo() function. Apparently that didn't cause a crash on
other platforms, but that was just luck. The overflow happened if the
error message was longer than 4096 bytes.
Fixed, thanks for the report! I also added a test case for that to the
regression suite.
- Heikki
--
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: hlinnaka@iki.fi, kobruleht2@hot.ee
Subject: Re: How to fix buffer overrun in Windows x32
In-Reply-To: <56014D52.1040000@iki.fi>
References: <1B88854920C942948F943E26B452E3A4@dell2> <560103D8.2090603@iki.fi> <C56F7A039E424B3EAD90D26779B17CCF@dell2> <56014D52.1040000@iki.fi>
* 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