diff options
| author | Andrew Goodbody <[email protected]> | 2025-07-21 15:43:36 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-07-28 13:04:42 -0600 |
| commit | b83f865e75aecf7edbc75c3794b3e29ef5bff5a2 (patch) | |
| tree | 29cdec3257ed1aff8a48fd7069e46da6bbdbd68f /doc/develop | |
| 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 <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions
