linux/lib/kunit
Kees Cook 7554a7b96d kunit: executor: Simplify string allocation handling
The alloc/copy code pattern is better consolidated to single kstrdup (and
kstrndup) calls instead. This gets rid of deprecated[1] strncpy() uses as
well. Replace one other strncpy() use with the more idiomatic strscpy().

Link: https://github.com/KSPP/linux/issues/90 [1]
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2024-07-12 10:11:48 -06:00
..
.kunitconfig
Kconfig
Makefile kunit: test: Add vm_mmap() allocation resource manager 2024-06-14 19:31:33 -06:00
assert.c
assert_test.c
attributes.c
debugfs.c
debugfs.h
device-impl.h
device.c
executor.c kunit: executor: Simplify string allocation handling 2024-07-12 10:11:48 -06:00
executor_test.c kunit: executor: Simplify string allocation handling 2024-07-12 10:11:48 -06:00
hooks-impl.h
hooks.c
kunit-example-test.c kunit: add missing MODULE_DESCRIPTION() macros to core modules 2024-06-07 15:59:05 -06:00
kunit-test.c kunit: add missing MODULE_DESCRIPTION() macros to core modules 2024-06-07 15:59:05 -06:00
resource.c
static_stub.c
string-stream-test.c
string-stream.c
string-stream.h
test.c kunit: add missing MODULE_DESCRIPTION() macros to core modules 2024-06-07 15:59:05 -06:00
try-catch-impl.h
try-catch.c
user_alloc.c kunit/usercopy: Disable testing on !CONFIG_MMU 2024-07-02 10:11:40 -06:00