summaryrefslogtreecommitdiff
path: root/lib/efi_client/efi_app_init.c
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-07-21 15:43:36 +0100
committerTom Rini <trini@konsulko.com>2025-07-28 13:04:42 -0600
commitb83f865e75aecf7edbc75c3794b3e29ef5bff5a2 (patch)
tree29cdec3257ed1aff8a48fd7069e46da6bbdbd68f /lib/efi_client/efi_app_init.c
parent9b2e79419024a8d3435b6a1e82ea92c934d5b89b (diff)
cmd: elf: Prevent possible buffer overflow
In do_bootvx the environment variable 'bootdev' is fetched and copied into a buffer without confirming that it will not overflow that buffer. Use strlcpy to ensure that the buffer will not be overflowed. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Diffstat (limited to 'lib/efi_client/efi_app_init.c')
0 files changed, 0 insertions, 0 deletions