more buffer paranoia - Mailing list pgsql-patches

From Neil Conway
Subject more buffer paranoia
Date
Msg-id 87znveqp7n.fsf@mailbox.samurai.com
Whole thread Raw
Responses Re: more buffer paranoia  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: more buffer paranoia  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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@samurai.com> || PGP Key ID: DB3C29FC

Attachment

pgsql-patches by date:

Previous
From: "J. R. Nield"
Date:
Subject: Fix for segfault in pgmodule.c: pgquery_dictresult()
Next
From: Neil Conway
Date:
Subject: NAMEDATALEN doc update