Re: [Bug] Heap Use After Free in parallel_vacuum_reset_dead_items Function

John Naylor <johncnaylorls@gmail.com>

From: John Naylor <johncnaylorls@gmail.com>
To: Vallimaharajan G <vallimaharajan.gs@zohocorp.com>
Cc: "zlabs-cstore@zohocorp.com" <zlabs-cstore@zohocorp.com>, pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-12-05T01:46:33Z
Lists: pgsql-bugs, pgsql-hackers
On Tue, Nov 26, 2024 at 4:53 PM John Naylor <johncnaylorls@gmail.com> wrote:
> Thanks for the report! I don't see any immediate evidence of deleterious effects, but it's still sloppy. To reduce risk going forward, I think we should always access this pointer via the struct rather than a separate copy, quick attempt attached.

[removing -bugs]

I looked again and changed a few more places for consistency, and committed.

-- 
John Naylor
Amazon Web Services



Commits

  1. Fix use-after-free in parallel_vacuum_reset_dead_items