Re: (yet) more buffer paranoia

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: (yet) more buffer paranoia
Date: 2002-08-28 18:30:30
Message-ID: Pine.LNX.4.44.0208281855170.951-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Neil Conway writes:

> This patches replaces a few more usages of strcpy() and sprintf() when
> copying into a fixed-size buffer (in this case, a buffer of
> NAMEDATALEN bytes). AFAICT nothing to worry about here, but worth
> fixing anyway...

Changing strcpy to strncpy is incorrect. strncpy should be banned.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-08-28 19:05:05 Re: [HACKERS] Proposed GUC Variable
Previous Message Peter Eisentraut 2002-08-28 18:29:26 Re: [HACKERS] Proposed GUC Variable