Обсуждение: [PATCH] Fix Null pointer dereferences (pgoutput.c)

Поиск
Список
Период
Сортировка

[PATCH] Fix Null pointer dereferences (pgoutput.c)

От
Ranier Vilela
Дата:
Hi,

Per Coverity.

If test oldtuple can be NULL, I mean it can really be NULL.
On DELETE process, if oldtuple is NULL, log error and continue.
So UPDATE must have the same treatment.

regards,
Ranier Vilela
Вложения

Re: [PATCH] Fix Null pointer dereferences (pgoutput.c)

От
Amit Langote
Дата:
On Thu, Apr 23, 2020 at 10:48 PM Ranier Vilela <ranier.vf@gmail.com> wrote:
>
> Hi,
>
> Per Coverity.
>
> If test oldtuple can be NULL, I mean it can really be NULL.
> On DELETE process, if oldtuple is NULL, log error and continue.
> So UPDATE must have the same treatment.

I think I too had noticed this when working on my patch to move this
code to a different location in that function, posted here:
https://www.postgresql.org/message-id/CA%2BHiwqEeU19iQgjN6HF1HTPU0L5%2BJxyS5CmxaOVGNXBAfUY06Q%40mail.gmail.com

-- 
Amit Langote
EnterpriseDB: http://www.enterprisedb.com