Re: cube output function can overrun its buffer

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cube output function can overrun its buffer
Дата
Msg-id 3893.1029701837@sss.pgh.pa.us
обсуждение исходный текст
Ответ на cube output function can overrun its buffer  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-bugs
Bruno Wolff III <bruno@wolff.to> writes:
> In cube_out 100 bytes are allocated to hold the output string.

Good point.

> Instead
> using a bound on the size of g format output and separation characters,
> this bound times twice the dimension (possibly plus a small constant for
> parens and terminating 0 byte) should be used.

I made it use an expandable buffer, instead.  Much less fragile...

            regards, tom lane

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: cube output function can overrun its buffer
Следующее
От: Ian Grant
Дата:
Сообщение: initdb fails on ia64 SMP system