pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix more portability issues in new amcheck code.
Date: Fri, 23 Oct 2020 23:08:07 +0000
Message-ID: <E1kW6AJ-0004ah-KY@gemulon.postgresql.org> (raw)

Fix more portability issues in new amcheck code.

verify_heapam() wasn't being careful to sanity-check tuple line
pointers before using them, resulting in SIGBUS on alignment-picky
architectures.  Fix that, add some more test coverage.

Mark Dilger, some tweaking by me

Discussion: https://postgr.es/m/30B8E99A-2D9C-48D4-A55C-741C9D5F1563@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/321633e17b07968e68ca5341429e2c8bbf15c331

Modified Files
--------------
contrib/amcheck/t/001_verify_heapam.pl | 30 ++++++++-----
contrib/amcheck/verify_heapam.c        | 78 +++++++++++++++++++++++-----------
2 files changed, 73 insertions(+), 35 deletions(-)



view thread (5+ messages)

Message-ID: <E1kW6AJ-0004ah-KY@gemulon.postgresql.org>
Permalink:  ../E1kW6AJ-0004ah-KY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kW6AJ-0004ah-KY@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix more portability issues in new amcheck code.
  In-Reply-To: <E1kW6AJ-0004ah-KY@gemulon.postgresql.org>
  References: <E1kW6AJ-0004ah-KY@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox