diff options
| author | Dongdong Zhang <[email protected]> | 2025-02-19 09:57:26 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-03-23 18:38:57 +0530 |
| commit | 56341e95aed220c114f28cfea8e2e62e1366f50b (patch) | |
| tree | 1fde4269adbdf32e7b6c51d3ca3cb765a5777a7c /scripts | |
| parent | 0b78665a6c51a7b8b6da31e05590e6fd810d07e2 (diff) | |
lib: sbi: Fix potential garbage data in string copy functions
In the original implementation of `sbi_strcpy` and `sbi_strncpy`, if the
destination buffer (`dest`) was longer than the source string (`src`),
the functions did not ensure that the remaining bytes in `dest` were
properly null-terminated. This could result in garbage data being
present in the destination buffer after the copy operation, as the
functions only copied characters from `src` without explicitly
terminating `dest`.
Signed-off-by: Dongdong Zhang <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
