aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2024-01-18 20:31:55 +0000
committerKees Cook <[email protected]>2024-01-19 19:59:11 +0000
commitd26270061ae66b915138af7cd73ca6f8b85e6b44 (patch)
treeefd84b38f392f32f691e6f98173b90cbbd0e0106 /lib/test_fortify/write_overflow-strlcpy-src.c
parentbcachefs: Replace strlcpy() with strscpy() (diff)
downloadkernel-d26270061ae66b915138af7cd73ca6f8b85e6b44.tar.gz
kernel-d26270061ae66b915138af7cd73ca6f8b85e6b44.zip
string: Remove strlcpy()
With all the users of strlcpy() removed[1] from the kernel, remove the API, self-tests, and other references. Leave mentions in Documentation (about its deprecation), and in checkpatch.pl (to help migrate host-only tools/ usage). Long live strscpy(). Link: https://github.com/KSPP/linux/issues/89 [1] Cc: Azeem Shaikh <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Andy Whitcroft <[email protected]> Cc: Joe Perches <[email protected]> Cc: Dwaipayan Ray <[email protected]> Cc: Lukas Bulwahn <[email protected]> Cc: [email protected] Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
-rw-r--r--lib/test_fortify/write_overflow-strlcpy-src.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/test_fortify/write_overflow-strlcpy-src.c b/lib/test_fortify/write_overflow-strlcpy-src.c
deleted file mode 100644
index 91bf83ebd34a..000000000000
--- a/lib/test_fortify/write_overflow-strlcpy-src.c
+++ /dev/null
@@ -1,5 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-only
-#define TEST \
- strlcpy(small, large_src, sizeof(small) + 1)
-
-#include "test_fortify.h"