Refine the GPT partition entry table validity check to ensure
authorkrw <krw@openbsd.org>
Wed, 20 Apr 2022 23:36:30 +0000 (23:36 +0000)
committerkrw <krw@openbsd.org>
Wed, 20 Apr 2022 23:36:30 +0000 (23:36 +0000)
commitef761e9999b08ed2bb4fe5780a9b140849d41fdf
treeace487d907fb4f533b7e5ac053570f186463a52a
parent15dba4e47f2d309e392b252f2f56b6b9e8ec1b12
Refine the GPT partition entry table validity check to ensure
that the partition entry table associated with the primary GPT
header at sector 1 doesn't overwrite the header or intrude into
the sectors available for partitions.

Similarly ensure that the partition entry table associated with
the alternate header does not overwrite that header or intrude
into the sectors available for partitions.
sbin/fdisk/gpt.c