aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-08-02 17:25:01 +0000
committerKees Cook <[email protected]>2021-09-25 15:20:50 +0000
commit072af0c638dc8a5c7db2edc4dddbd6d44bee3bdb (patch)
tree2e0f8ef59e7937825af731b9a26454230d9b5167 /lib/test_fortify/write_overflow-strncpy.c
parentfortify: Explicitly disable Clang support (diff)
downloadkernel-072af0c638dc8a5c7db2edc4dddbd6d44bee3bdb.tar.gz
kernel-072af0c638dc8a5c7db2edc4dddbd6d44bee3bdb.zip
fortify: Fix dropped strcpy() compile-time write overflow check
The implementation for intra-object overflow in str*-family functions accidentally dropped compile-time write overflow checking in strcpy(), leaving it entirely to run-time. Add back the intended check. Fixes: 6a39e62abbaf ("lib: string.h: detect intra-object overflow in fortified string functions") Cc: Daniel Axtens <[email protected]> Cc: Francis Laniel <[email protected]> Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions