X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 315D8D1B21B for ; Thu, 8 Jul 2004 19:58:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 41379-01 for ; Thu, 8 Jul 2004 22:58:10 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id 50A25D1B1B6 for ; Thu, 8 Jul 2004 19:58:05 -0300 (ADT) Received: (qmail 23800 invoked by uid 65534); 8 Jul 2004 22:58:07 -0000 Received: from dsl-213-023-255-071.arcor-ip.net (EHLO colt.pezone.net) (213.23.255.71) by mail.gmx.net (mp021) with SMTP; 09 Jul 2004 00:58:07 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: pgsql-odbc@postgresql.org Subject: [Patch] First buffer overflow fixes Date: Fri, 9 Jul 2004 00:58:06 +0200 User-Agent: KMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407090058.06999.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/46 X-Sequence-Number: 4179 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.