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

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH] Fix Null pointer dereferences (pgoutput.c)
Date: 2020-04-23 13:47:41
Message-ID: CAEudQApO0n2k7HCchZo0AU9iFRbK8BdzNEftcP=uqHo=_kZ9Gg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
fix_null_pointer_dereference_pgoutput.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-04-23 14:35:32 Re: More efficient RI checks - take 2
Previous Message Juan José Santamaría Flecha 2020-04-23 13:18:54 Re: PG compilation error with Visual Studio 2015/2017/2019