Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1bdd9338 authored by Shankari Anand's avatar Shankari Anand Committed by Greg Kroah-Hartman
Browse files

kconfig: nconf: Ensure null termination where strncpy is used



[ Upstream commit f468992936894c9ce3b1659cf38c230d33b77a16 ]

strncpy() does not guarantee null-termination if the source string is
longer than the destination buffer.

Ensure the buffer is explicitly null-terminated to prevent potential
string overflows or undefined behavior.

Signed-off-by: default avatarShankari Anand <shankari.ak0208@gmail.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: default avatarNicolas Schier <n.schier@avm.de>
Acked-by: default avatarNicolas Schier <n.schier@avm.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6d150a17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment