Re: [PATCH] Fix memory corruption in pg_shdepend.c - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [PATCH] Fix memory corruption in pg_shdepend.c
Date
Msg-id YXDeB+wASDrzluwA@paquier.xyz
Whole thread Raw
In response to Re: [PATCH] Fix memory corruption in pg_shdepend.c  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: [PATCH] Fix memory corruption in pg_shdepend.c
List pgsql-hackers
On Wed, Oct 20, 2021 at 07:59:50PM -0700, Peter Geoghegan wrote:
> I think that EDB's pg_catcheck tool can detect problems like this one.

Yes, pg_catcheck is able to catch that.

> Perhaps it can be converted into an amcheck/pg_amcheck patch, and
> submitted. That would give us very broad coverage.

Perhaps.  This means the creation of a new database with shared deps
in contrib/amcheck/t/.  But is amcheck really a correct target here?
The fields involved here are an int, some OIDs and a char with a given
subset of values making them harder to check.  pg_catcheck does checks
across catalogs, maintaining a mapping list as of its definitions.c.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: pgsql: Document XLOG_INCLUDE_XID a little better
Next
From: Peter Geoghegan
Date:
Subject: Re: [PATCH] Fix memory corruption in pg_shdepend.c