diff options
author | Ian Lepore <ian@FreeBSD.org> | 2019-12-22 22:33:22 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2019-12-22 22:33:22 +0000 |
commit | 42e08952bb84aa86dfdcc7b80c95b58e515bdce7 (patch) | |
tree | f5eaa2b9ed0ac072b6fab7bf4eac3ab0b2cde664 /usr.bin/protect | |
parent | e15cbf74d1084c23a9cef60795649b5824dd9fd4 (diff) | |
download | src-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