From 3bf301e1ab85e18ed0e337ce124dc71d6d7b5fd7 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Tue, 4 Apr 2023 15:43:35 -0700 Subject: string: Add Kunit tests for strcat() family Add tests to make sure the strcat() family of functions behave correctly. Signed-off-by: Kees Cook --- lib/Kconfig.debug | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Kconfig.debug') diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 1a630a03dfcc..c2a7608ff585 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2662,6 +2662,11 @@ config HW_BREAKPOINT_KUNIT_TEST If unsure, say N. +config STRCAT_KUNIT_TEST + tristate "Test strcat() family of functions at runtime" if !KUNIT_ALL_TESTS + depends on KUNIT + default KUNIT_ALL_TESTS + config STRSCPY_KUNIT_TEST tristate "Test strscpy*() family of functions at runtime" if !KUNIT_ALL_TESTS depends on KUNIT -- cgit v1.2.3