diff options
author | Kees Cook <keescook@chromium.org> | 2021-08-02 10:25:01 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2021-09-25 08:20:50 -0700 |
commit | 072af0c638dc8a5c7db2edc4dddbd6d44bee3bdb (patch) | |
tree | 2e0f8ef59e7937825af731b9a26454230d9b5167 /lib/test_fortify/write_overflow-strlcpy.c | |
parent | a52f8a59aef46b59753e583bf4b28fccb069ce64 (diff) |
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 <dja@axtens.net>
Cc: Francis Laniel <laniel_francis@privacyrequired.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy.c')
0 files changed, 0 insertions, 0 deletions