[PATCH] Fix Null pointer dereferences (pgoutput.c)
[PATCH] Fix Null pointer dereferences (pgoutput.c)
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 <amitlangote09@gmail.com>
Дата:
On Thu, Apr 23, 2020 at 10:48 PM Ranier Vilela 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