Commit 5ac72665 authored by Suchit Karunakaran's avatar Suchit Karunakaran Committed by Masahiro Yamada
Browse files

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: default avatarSuchit Karunakaran <suchitkarunakaran@gmail.com>
Reviewed-by: default avatarNicolas Schier <nicolas.schier@linux.dev>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 1918f983
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment