Skip site navigation (1) Skip section navigation (2)

more buffer paranoia

From: Neil Conway <neilc(at)samurai(dot)com>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: more buffer paranoia
Date: 2002-08-23 02:33:00
Message-ID: 87znveqp7n.fsf@mailbox.samurai.com (view raw or flat)
Thread:
Lists: pgsql-patches
This patch adds length checking for a bunch of instances in the
backend where a statically sized buffer is written to. Most of these
should be pretty safe in practice, but it's probably better to be safe
than sorry.

I was actually looking for cases where NAMEDATALEN is assumed to be
32, but only found one. That's fixed too, as well as a few bits of
code cleanup.

Cheers,

Neil

-- 
Neil Conway <neilc(at)samurai(dot)com> || PGP Key ID: DB3C29FC

Attachment: buffer_fixes.patch
Description: text/x-patch (12.3 KB)

Responses

pgsql-patches by date

Next:From: Neil ConwayDate: 2002-08-23 02:44:31
Subject: NAMEDATALEN doc update
Previous:From: Christopher Kings-LynneDate: 2002-08-23 02:04:50
Subject: Proposed GUC Variable

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group