Re: [PATCH] Fix buffer not null terminated on (ecpg lib)

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [PATCH] Fix buffer not null terminated on (ecpg lib)
Дата
Msg-id 20210615172858.wubto2e4552ughhl@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [PATCH] Fix buffer not null terminated on (ecpg lib)  (Ranier Vilela <ranier.vf@gmail.com>)
Ответы Re: [PATCH] Fix buffer not null terminated on (ecpg lib)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

On 2021-06-15 07:40:46 -0300, Ranier Vilela wrote:
> memcpy would not suffer from it?

It'd not be correct for short sqlstates - you'd read beyond the end of
the source buffer. There are cases of it in the ecpg code.

Greetings,

Andres Freund



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: unnesting multirange data types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: unnesting multirange data types