Re: [PATCH] Fix memory corruption in pg_shdepend.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Aleksander Alekseev <aleksander(at)timescale(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Sven Klemm <sven(at)timescale(dot)com>
Subject: Re: [PATCH] Fix memory corruption in pg_shdepend.c
Date: 2021-10-20 10:55:20
Message-ID: YW/1mK7+Q3HAZFqL@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 20, 2021 at 01:01:31PM +0300, Aleksander Alekseev wrote:
> I checked the rest of the PostgreSQL code and apparently, it should
> have been tts_values[Anum_pg_shdepend_FOO - 1].
>
> The patch is attached. The problem was first reported offlist by Sven
> Klemm. Investigated and fixed by me.

Yes, that's indeed a one-off bug when copying shared dependencies of a
template database to the new one. This is new as of e3931d0, so I'll
take care of that and double-check the area while on.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2021-10-20 11:00:35 Re: lastOverflowedXid does not handle transaction ID wraparound
Previous Message Amit Kapila 2021-10-20 10:47:26 Re: pgsql: Document XLOG_INCLUDE_XID a little better