aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorJustin Stitt <[email protected]>2023-09-18 13:34:08 +0000
committerLucas Stach <[email protected]>2023-10-11 18:50:01 +0200
commit939fcf7b8691b9e9ac80e92eedeb14476069021b (patch)
treede2ab298d1e7ed39d1aab8507a7f96ea63cebd7a /tools/testing/selftests/bpf/progs/test_autoload.c
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
drm/etnaviv: Replace strncpy with strscpy_pad
`strncpy` is deprecated for use on NUL-terminated destination strings [1]. We should prefer more robust and less ambiguous string interfaces. A suitable replacement is `strscpy_pad` due to the fact that it guarantees NUL-termination on the destination buffer whilst maintaining the NUL-padding behavior that strncpy provides. Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1] Link: https://github.com/KSPP/linux/issues/90 Cc: [email protected] Cc: Bo YU <[email protected]> Signed-off-by: Justin Stitt <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> [lst: changed subject according to suggestion from Kees] Signed-off-by: Lucas Stach <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions