aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2023-04-07 19:27:15 +0000
committerKees Cook <[email protected]>2024-02-29 21:38:02 +0000
commitfa4a3f86d4982b603865ccb97dde82f0ae1e3302 (patch)
treee300b82305372177203a92531c0190864c4d34f6 /lib/string_helpers.c
parentfortify: Provide KUnit counters for failure testing (diff)
downloadkernel-fa4a3f86d4982b603865ccb97dde82f0ae1e3302.tar.gz
kernel-fa4a3f86d4982b603865ccb97dde82f0ae1e3302.zip
fortify: Add KUnit tests for runtime overflows
With fortify overflows able to be redirected, we can use KUnit to exercise the overflow conditions. Add tests for every API covered by CONFIG_FORTIFY_SOURCE, except for memset() and memcpy(), which are special-cased for now. Disable warnings in the Makefile since we're explicitly testing known-bad string handling code patterns. Note that this makes the LKDTM FORTIFY_STR* tests obsolete, but those can be removed separately. Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions