contrib/ buffer paranoia - Mailing list pgsql-patches

From Neil Conway
Subject contrib/ buffer paranoia
Date
Msg-id 87adnsxbxq.fsf@klamath.dyndns.org
Whole thread Raw
Responses Re: contrib/ buffer paranoia
List 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@rogers.com>
PGP Key ID: DB3C29FC

Attachment

pgsql-patches by date:

Previous
From: "Ulrich Neumann"
Date:
Subject: Antw: Re: Patch for unreleased memory in buf_init.c
Next
From: "Ulrich Neumann"
Date:
Subject: Antw: Re: Patch for NetWare support