gpt(8): Explicitly avoid out of range in searching MBR partitions
authorAaron LI <aly@aaronly.me>
Tue, 18 Jun 2019 16:30:40 +0000 (00:30 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 18 Jun 2019 16:30:40 +0000 (00:30 +0800)
commit47af96940556d3cde6c471a39e5b88fa750beb50
treea57f6811b17afcc39f7fccb81d2895e5ef2f7eaa
parentcfa1fd397ebc24eb76c3f9bbeea574341efeabec
gpt(8): Explicitly avoid out of range in searching MBR partitions

Avoid running off the end of an array in case thing we're looking for
isn't there.  This is probably impossible, but not obvious.

Obtained-from: NetBSD
Bug-report: #3015
sbin/gpt/show.c