From: | Pierre Ducroquet <p(dot)psql(at)pinaraf(dot)info> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: function lca('{}'::ltree[]) caused DB Instance crash |
Date: | 2018-07-13 10:48:35 |
Message-ID: | 4285558.KOck4HGOto@peanuts2 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs 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
Attachment | Content-Type | Size |
---|---|---|
0001-Fix-segfault-with-lca-ltree.patch | text/x-patch | 661 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Bapat | 2018-07-13 13:50:36 | Re: BUG #15212: Default values in partition tables don't work as expected and allow NOT NULL violation |
Previous Message | 李海龙 | 2018-07-13 10:09:20 | function lca('{}'::ltree[]) caused DB Instance crash |
From | Date | Subject | |
---|---|---|---|
Next Message | Dean Rasheed | 2018-07-13 11:19:18 | Re: [HACKERS] PATCH: multivariate histograms and MCV lists |
Previous Message | Ashutosh Bapat | 2018-07-13 10:15:56 | Re: TupleTableSlot abstraction |