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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
buffer_fixes.patch text/x-patch 12.3 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2002-08-23 02:44:31 NAMEDATALEN doc update
Previous Message Christopher Kings-Lynne 2002-08-23 02:04:50 Proposed GUC Variable