Ineffective Assert-check in CopyMultiInsertInfoNextFreeSlot()

From: Amul Sul <sulamul(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Ineffective Assert-check in CopyMultiInsertInfoNextFreeSlot()
Date: 2024-08-16 11:47:47
Message-ID: CAAJ_b94hXQzXaJxTLShkxQUgezf_SUxhzX9TH2f-g6gP7bne7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The Assert(buffer != NULL) is placed after the buffer is accessed,
which could lead to a segmentation fault before the check is executed.

Attached a small patch to correct that.

--
Regards,
Amul Sul
EDB: http://www.enterprisedb.com

Attachment Content-Type Size
delay_assignment.patch application/x-patch 671 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-08-16 12:18:31 Re: Relation bulk write facility
Previous Message Michail Nikolaev 2024-08-16 11:46:45 Re: Conflict detection and logging in logical replication