Re: more buffer paranoia

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: more buffer paranoia
Date: 2002-08-28 20:46:05
Message-ID: 200208282046.g7SKk6P27229@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Neil Conway wrote:
> 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, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-08-28 20:46:47 Re: CREATE INDEX error message
Previous Message Bruce Momjian 2002-08-28 20:19:03 Re: Fix for segfault in pgmodule.c: pgquery_dictresult()