diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-16 11:55:47 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-07-23 17:37:08 -0600 |
commit | 25d3e0509c7d812e05d21c2c73038dce6fe9d889 (patch) | |
tree | b72d9385b00bfba7aa713780e42b4adc9a651f0a /arch/x86/cpu/qemu/qemu.c | |
parent | d29c1092ebe113d31bc95792644350592d1211ff (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 <andrew.goodbody@linaro.org>
Diffstat (limited to 'arch/x86/cpu/qemu/qemu.c')
0 files changed, 0 insertions, 0 deletions