Re: Oops in fe-auth.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Oops in fe-auth.c
Дата
Msg-id 24126.1185200937@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Oops in fe-auth.c  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Oops in fe-auth.c
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> When run in debug mode, the runtime for msvc will *zero-pad the entire
> buffer* in a strncpy() call. This in itself is not bad (just slow), but it
> shows a rather bad bug in libpq.

[squint]  That is the specified behavior of strncpy on every platform,
not only msvc.  If there's a bug here why didn't we notice it long ago?

> Given this, I'll go ahead and fix fe-connect to support PQExpBuffers,
> unless there are any objections.

I'm not against that, but I question what bug you've really found.
        regards, tom lane


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Oops in fe-auth.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SSPI vs MingW