| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера