Fix more portability issues in new amcheck code.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 321633e17b07968e68ca5341429e2c8bbf15c331
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-10-23T23:08:01Z
Releases: 14.0
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

Files

PathChange+/−
contrib/amcheck/t/001_verify_heapam.pl modified +20 −10
contrib/amcheck/verify_heapam.c modified +53 −25

Discussion