[PATCH] Avoid dereference null relation pointer (src/backend/replication/logical/reorderbuffer.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Avoid dereference null relation pointer (src/backend/replication/logical/reorderbuffer.c)
Date: 2022-03-31 13:06:04
Message-ID: CAEudQAo1BCgxTw1pSaK4JtHsv-zSTpnyY_ENs14Y_O_C_Fiv9w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

Minor oversight with commit 0da92dc
<https://github.com/postgres/postgres/commit/0da92dc530c9251735fc70b20cd004d9630a1266>
.
RelationIdGetRelation can return NULL, then it is necessary to check the
return.

regards,
Ranier Vilela

Attachment Content-Type Size
0001-avoid-dereference-null-relation.patch application/octet-stream 680 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Gunnar "Nick" Bluth 2022-03-31 13:14:24 Re: [PATCH] pg_stat_toast v9
Previous Message Robert Haas 2022-03-31 13:05:52 Re: Logical insert/update/delete WAL records for custom table AMs