diff options
| author | Ngo Luong Thanh Tra <[email protected]> | 2026-03-28 12:15:48 +0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-04-13 17:34:48 -0600 |
| commit | 163d939b2839e156e58c234f07bf987228b91137 (patch) | |
| tree | 0fbfe21e51afb7aa1dda26c8083db746514a3109 /scripts/generate_errors.pl | |
| parent | b0d731d9563cd6fb8bd6c8304065e550d97a22c7 (diff) | |
board: nanopi2: fix bd_update_env() cmdline buffer overflow
Replace unbounded strcpy()/sprintf() calls with snprintf() and
check the return value against remaining buffer capacity at each
append step. The previous size guard did not account for
subsequent dpi suffix, remaining bootargs tail, and bootdev
token appends, allowing overflow when those later writes exceed
the remaining space.
Fixes: d1611086e005 ("arm: add support for SoC s5p4418 (cpu) / nanopi2 board")
To: [email protected]
Signed-off-by: Ngo Luong Thanh Tra <[email protected]>
Tested-by: Stefan Bosch <[email protected]>
Diffstat (limited to 'scripts/generate_errors.pl')
0 files changed, 0 insertions, 0 deletions
