summaryrefslogtreecommitdiffstats
path: root/Documentation/trace
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-03-13 17:36:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-13 12:50:13 +0200
commit3a54069c1398266c7523f24db52391f7d54be13f (patch)
tree7df12700564ceed31070fc334892c4273485bac4 /Documentation/trace
parent60cb8c4ae9874e8b7906302306e85e3138cb19fc (diff)
downloadlinux-stable-3a54069c1398266c7523f24db52391f7d54be13f.tar.gz
linux-stable-3a54069c1398266c7523f24db52391f7d54be13f.tar.bz2
linux-stable-3a54069c1398266c7523f24db52391f7d54be13f.zip
staging: vc04_services: changen strncpy() to strscpy_pad()
[ Upstream commit ef25725b7f8aaffd7756974d3246ec44fae0a5cf ] gcc-14 warns about this strncpy() that results in a non-terminated string for an overflow: In file included from include/linux/string.h:369, from drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c:20: In function 'strncpy', inlined from 'create_component' at drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c:940:2: include/linux/fortify-string.h:108:33: error: '__builtin_strncpy' specified bound 128 equals destination size [-Werror=stringop-truncation] Change it to strscpy_pad(), which produces a properly terminated and zero-padded string. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20240313163712.224585-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Stable-dep-of: f37e76abd614 ("staging: vc04_services: fix information leak in create_component()") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation/trace')
0 files changed, 0 insertions, 0 deletions