summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-11-03 14:20:01 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-11-03 14:20:01 +0000
commit3677ee48083ef41eecd6cd2134fd8105bcaae4db (patch)
treec3b1c2688c281f6a09c11407d49a11570f18fdae /sys/arch/amd64/stand
parent8c5bef2d95dff2780436be4e5ddda399b109fd26 (diff)
Don't allow the user to enter GPT partition names too large to fit
in the GPT partition structure. And don't run off the end of the name buffer by confusing sizeof() with the number of elements in an array. Use the new GPTPARTNAMESIZE #define instead. While here, zap the old partition name before setting the new one, lest a short new name leave bits of an old long name in place. Originally spotted by jsg@ and his friend cppcheck. ok jsg@ for slightly different version.
Diffstat (limited to 'sys/arch/amd64/stand')
0 files changed, 0 insertions, 0 deletions