Re: [Patch] First buffer overflow fixes

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [Patch] First buffer overflow fixes
Date: 2004-07-09 08:01:35
Message-ID: 200407091001.35802.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

And here's the patch... :-)

Am Freitag, 9. Juli 2004 00:58 schrieb Peter Eisentraut:
> Here's a small round of fixes for buffer overflows. They are related to
> the recent security announcement, namely that the make_string()
> function doesn't check the size of the buffer. The solution is mainly
> based on the patch proposed by Martin Pitt at that time, namely to pass
> the size of the buffer, but I'm leaning more in favor of dynamically
> allocating buffers rather than using fixed-size arrays, so I used that
> approach where possible.
>
> Please inspect. If no one objects I'll install this patch in a few
> days.

Attachment Content-Type Size
psqlodbc-makestring-patch.diff text/x-diff 8.1 KB

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2004-07-09 08:52:15 Re: [Patch] First buffer overflow fixes
Previous Message Dave Page 2004-07-09 07:12:59 Re: odbc driver