summaryrefslogtreecommitdiff
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorSuchit Karunakaran <suchitkarunakaran@gmail.com>2025-07-27 19:44:33 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2025-08-06 04:23:36 +0300
commit5ac726653a1029a2eccba93bbe59e01fc9725828 (patch)
tree71ab56febe0d834080f91f12a884789dff57335d /rust/helpers/xarray.c
parent1918f983687aa73bf0e5bc73431898994fce35a8 (diff)
downloadlinux-5ac726653a1029a2eccba93bbe59e01fc9725828.tar.xz
kconfig: lxdialog: replace strcpy() with strncpy() in inputbox.c
strcpy() performs no bounds checking and can lead to buffer overflows if the input string exceeds the destination buffer size. This patch replaces it with strncpy(), and null terminates the input string. Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com> Reviewed-by: Nicolas Schier <nicolas.schier@linux.dev> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions