Seg-fault in format(text)

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Seg-fault in format(text)
Дата
Msg-id BANLkTikCHX07tiKBnHM4EM2FE=Cw+sznHQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Seg-fault in format(text)
Список pgsql-bugs
Testing 9.1beta:

select format('Hello %s, %2147483648$s', 'World');
server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.

The problem is that the test for overflow of the arg position doesn't
catch all cases. The simplest solution is to just tweak the comparison
at varlena.c:3840 (patch attached) although maybe there are neater
ways...

Regards,
Dean

Вложения

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

Предыдущее
От: "Daniel Schreiber"
Дата:
Сообщение: BUG #6035: server crash when executing recursive query (trying to allocate 16 Exabyte memory)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Seg-fault in format(text)