contrib/ buffer paranoia

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: contrib/ buffer paranoia
Date: 2002-08-12 16:46:09
Message-ID: 87adnsxbxq.fsf@klamath.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

The attached patch changes most of the usages of sprintf() to
snprintf() in contrib/. I didn't touch the places where pointer
arithmatic was being used, or other areas where the fix wasn't
trivial. I would think that few, if any, of the usages of sprintf()
were actually exploitable, but it's probably better to be paranoid...

Unless anyone sees a problem, please apply.

Cheers,

Neil

--
Neil Conway <neilconway(at)rogers(dot)com>
PGP Key ID: DB3C29FC

Attachment Content-Type Size
contrib-fixes-2.patch text/x-patch 29.5 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Ulrich Neumann 2002-08-12 16:46:24 Antw: Re: Patch for NetWare support
Previous Message Ulrich Neumann 2002-08-12 16:16:18 Antw: Re: Patch for unreleased memory in buf_init.c