aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/protect
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2019-12-22 22:33:22 +0000
committerIan Lepore <ian@FreeBSD.org>2019-12-22 22:33:22 +0000
commit42e08952bb84aa86dfdcc7b80c95b58e515bdce7 (patch)
treef5eaa2b9ed0ac072b6fab7bf4eac3ab0b2cde664 /usr.bin/protect
parente15cbf74d1084c23a9cef60795649b5824dd9fd4 (diff)
downloadsrc-42e08952bb84aa86dfdcc7b80c95b58e515bdce7.tar.gz
src-42e08952bb84aa86dfdcc7b80c95b58e515bdce7.zip
In gptboot, don't assume a partition number is a single digit, 1-9. GPT
partitions can have 128 partitions, so parse contiguous digits and then validate that the number is between 1-128 inclusive. I'm not sure 128 is a hard limit in the GPT standard, but it's the common number in use, and it's a better upper limit than 9.
Notes
Notes: svn path=/head/; revision=356031
Diffstat (limited to 'usr.bin/protect')
0 files changed, 0 insertions, 0 deletions