Re: chr() function leads to OOM / killed connection with 8.1, 8.2

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: chr() function leads to OOM / killed connection with 8.1, 8.2
Дата
Msg-id 469FB8C3.7000605@enterprisedb.com
обсуждение исходный текст
Ответ на Re: chr() function leads to OOM / killed connection with 8.1, 8.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: chr() function leads to OOM / killed connection with 8.1, 8.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tom Lane wrote:
> Heikki Linnakangas <heikki@enterprisedb.com> writes:
>> FWIW, I can reproduce this with UTF-8, on REL_8_2_STABLE.
>
> I can reproduce an out-of-memory condition (basically, replace() is
> going into an infinite loop because of the invalid input) but I'm
> not seeing any crash.

replace_text reads past the end of source string, byte by byte (or
character by character, not sure), and eventually tries to read from an
invalid address which causes a segfault. It happens here when start_posn
== 367368.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: chr() function leads to OOM / killed connection with 8.1, 8.2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: chr() function leads to OOM / killed connection with 8.1, 8.2