Re: pset_quoted_string is broken

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pset_quoted_string is broken
Дата
Msg-id 15760.1414365614@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pset_quoted_string is broken  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: pset_quoted_string is broken
Список pgsql-hackers
David Rowley <dgrowleyml@gmail.com> writes:
> It seems the buffer created in pset_quoted_string is just 1 char too small.

Yeah, that's a bug.  Fix pushed, thanks!

> This breaks psql's \pset for me, though I've no idea why the buildfarm is
> not complaining a bit more.

I think in most cases, maxalign padding of the malloc allocation would
result in there being room for another byte without trashing anything
important.  You must be using a libc that notices and complains about
even 1-byte buffer overruns.
        regards, tom lane



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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: pg_dump/pg_restore seem broken on hamerkop
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_dump/pg_restore seem broken on hamerkop