Re: function lca('{}'::ltree[]) caused DB Instance crash

Поиск
Список
Период
Сортировка
От Pierre Ducroquet
Тема Re: function lca('{}'::ltree[]) caused DB Instance crash
Дата
Msg-id 4285558.KOck4HGOto@peanuts2
обсуждение исходный текст
Ответы Re: function lca('{}'::ltree[]) caused DB Instance crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Friday, July 13, 2018 12:09:20 PM CEST 李海龙 wrote:
> HI,Oleg && pgsql-hackers
>
> Plese help me to check this is a bug of ltree?
>

Hi

There is indeed a bug. The _lca function in _ltree_op.c tries to allocate 0
bytes of memory, doesn't initialize it and dereference it in lca_inner.
The attached basic patch fixes it.

Regards

 Pierre

Вложения

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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: TupleTableSlot abstraction
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: [HACKERS] PATCH: multivariate histograms and MCV lists