summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-08-03 08:51:31 +0300
committerKees Cook <keescook@chromium.org>2021-09-25 18:20:50 +0300
commit3009f891bb9f328945ebd5b71e12df7e2467f3dd (patch)
tree21639a71e598f1fd3c9f51bf1adeb2d2bf8a06e4 /scripts
parent369cd2165d7beac1db144b40811baa2c6b7d8c54 (diff)
downloadlinux-3009f891bb9f328945ebd5b71e12df7e2467f3dd.tar.xz
fortify: Allow strlen() and strnlen() to pass compile-time known lengths
Under CONFIG_FORTIFY_SOURCE, it is possible for the compiler to perform strlen() and strnlen() at compile-time when the string size is known. This is required to support compile-time overflow checking in strlcpy(). Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions