diff options
| author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-07-21 15:43:36 +0100 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2025-07-28 13:04:42 -0600 |
| commit | b83f865e75aecf7edbc75c3794b3e29ef5bff5a2 (patch) | |
| tree | 29cdec3257ed1aff8a48fd7069e46da6bbdbd68f /configs | |
| parent | 9b2e79419024a8d3435b6a1e82ea92c934d5b89b (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 'configs')
0 files changed, 0 insertions, 0 deletions
