summaryrefslogtreecommitdiff
path: root/tests/scripts/scripts_path.py
diff options
context:
space:
mode:
authorNgo Luong Thanh Tra <[email protected]>2026-03-28 12:15:48 +0700
committerTom Rini <[email protected]>2026-04-13 17:34:48 -0600
commit163d939b2839e156e58c234f07bf987228b91137 (patch)
tree0fbfe21e51afb7aa1dda26c8083db746514a3109 /tests/scripts/scripts_path.py
parentb0d731d9563cd6fb8bd6c8304065e550d97a22c7 (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 'tests/scripts/scripts_path.py')
0 files changed, 0 insertions, 0 deletions