summaryrefslogtreecommitdiff
path: root/tests/git-scripts
diff options
context:
space:
mode:
authorNgo Luong Thanh Tra <[email protected]>2026-03-28 13:01:31 +0700
committerTom Rini <[email protected]>2026-04-13 17:42:34 -0600
commite228b6a50418e261ee09fa326464935acdabe610 (patch)
tree1c42f9b538e323944c22a9f7153bcd2ca600fc39 /tests/git-scripts
parentf7bef8f81f4f1b97b071b14a8c1f61df6285fc63 (diff)
board: samsung: fix set_board_info() board_name buffer overflow
Replace unbounded sprintf() with snprintf() using sizeof(info) as the bound when constructing the board_name string from bdname and bdtype. The previous call had no size limit and could overflow the 64-byte stack buffer if the concatenated string exceeded 63 bytes. Fixes: c9c36bf56e4c ("samsung: misc: use board specific functions to set env board info") Signed-off-by: Ngo Luong Thanh Tra <[email protected]> To: [email protected]
Diffstat (limited to 'tests/git-scripts')
0 files changed, 0 insertions, 0 deletions