Re: [PATCH] Fix off-by-one in PQprintTuples()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Fix off-by-one in PQprintTuples()
Дата
Msg-id 7796.1358741504@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Fix off-by-one in PQprintTuples()  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> Strictly speaking, it's this:

> tborder[i] = '\0';

> Which ends up writing past the end of the buffer (which is allocated as
> 'width + 1').  Perhaps we should also change that to be:

> tborder[width] = '\0';

Yeah, I like that better too.  Will commit.
        regards, tom lane



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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: [WIP] pg_ping utility
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: fix corner use case of variadic fuctions usage