From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-odbc@postgresql.org
Subject: [Patch] First buffer overflow fixes
Date: Fri, 9 Jul 2004 00:58:06 +0200
Message-ID: <200407090058.06999.peter_e@gmx.net> (raw)
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.
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: peter_e@gmx.net
Subject: Re: [Patch] First buffer overflow fixes
In-Reply-To: <200407090058.06999.peter_e@gmx.net>
References: <200407090058.06999.peter_e@gmx.net>
* 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