summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-07-16 11:55:47 +0100
committerTom Rini <[email protected]>2025-07-23 17:37:08 -0600
commit25d3e0509c7d812e05d21c2c73038dce6fe9d889 (patch)
treeb72d9385b00bfba7aa713780e42b4adc9a651f0a /include
parentd29c1092ebe113d31bc95792644350592d1211ff (diff)
cmd: gpt: Fix off by 1 errors
The buffer for a name to be copied into must also contain the terminating 0 byte but strlen returns the length of the string without counting that 0 byte. Adjust the length checks to take this into account. This issue found by Smatch. Signed-off-by: Andrew Goodbody <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions