Re: (yet) more buffer paranoia

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: (yet) more buffer paranoia
Дата
Msg-id Pine.LNX.4.44.0208281855170.951-100000@localhost.localdomain
обсуждение исходный текст
Ответ на (yet) more buffer paranoia  (Neil Conway <neilc@samurai.com>)
Ответы Re: (yet) more buffer paranoia  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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@gmx.net


В списке pgsql-patches по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] Proposed GUC Variable
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Proposed GUC Variable