diff options
| author | Kees Cook <[email protected]> | 2021-08-02 17:25:01 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2021-09-25 15:20:50 +0000 |
| commit | 072af0c638dc8a5c7db2edc4dddbd6d44bee3bdb (patch) | |
| tree | 2e0f8ef59e7937825af731b9a26454230d9b5167 /lib/test_fortify/write_overflow-strncpy.c | |
| parent | fortify: Explicitly disable Clang support (diff) | |
| download | kernel-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
