Fix more portability issues in new amcheck code.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Oct 2020 23:08:01 +0000 (19:08 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Oct 2020 23:08:01 +0000 (19:08 -0400)
commit321633e17b07968e68ca5341429e2c8bbf15c331
tree2635efd728290eda5a77ccbc17155ad83ea155d0
parent1b62d0fb3e50ede570d0d4e4a2be69d5645b48a7
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
contrib/amcheck/t/001_verify_heapam.pl
contrib/amcheck/verify_heapam.c