summaryrefslogtreecommitdiff
path: root/scripts/include/array_size.h
diff options
context:
space:
mode:
authorFeng Jiang <jiangfeng@kylinos.cn>2026-04-04 04:28:47 +0300
committerPaul Walmsley <pjw@kernel.org>2026-04-05 03:42:44 +0300
commitae45f896a40a07449d9b45d0395fb7245fdd75fc (patch)
tree87bdbd2000e54e683ac519e805f88480dc7b6623 /scripts/include/array_size.h
parentd7df0505478a3e479e914f0554b6b774a07a1b88 (diff)
downloadlinux-ae45f896a40a07449d9b45d0395fb7245fdd75fc.tar.xz
lib/string_kunit: add correctness test for strlen()
Add a KUnit test for strlen() to verify correctness across different string lengths and memory alignments. Use vmalloc() to place the NUL character at the page boundary to ensure over-reads are detected. Suggested-by: Kees Cook <kees@kernel.org> Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn> Reviewed-by: Kees Cook <kees@kernel.org> Link: https://patch.msgid.link/20260130025018.172925-2-jiangfeng@kylinos.cn Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/include/array_size.h')
0 files changed, 0 insertions, 0 deletions