[PATCH] Check for TupleTableSlot nullness before dereferencing

From: Alexander Kuznetsov <kuznetsovam(at)altlinux(dot)org>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: egori(at)altlinux(dot)org, nickel(at)altlinux(dot)org
Subject: [PATCH] Check for TupleTableSlot nullness before dereferencing
Date: 2024-10-03 07:47:40
Message-ID: 98e18ffc-c402-4710-ae28-6d6dbcf08e44@altlinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello everyone,

I'd like to propose adding check for nullness of
TupleTableSlot before dereferencing it in /src/backend/executor/nodeAgg.c

It is done in the same manner other TupleTableSlots are checked,
but was probably left unseen because slot1 and slot2 variables
can be swapped during function execution.

The patch is attached.

--
Best regards,
Alexander Kuznetsov

Attachment Content-Type Size
0001-Check-for-TupleTableSlot-nullness-before-dereferenci.patch text/x-patch 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Maiquel Grassi 2024-10-03 08:39:01 RE: Psql meta-command conninfo+
Previous Message jian he 2024-10-03 07:27:19 Re: Add new COPY option REJECT_LIMIT