Skip to content
Commit 3009f891 authored by Kees Cook's avatar Kees Cook
Browse files

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: default avatarKees Cook <keescook@chromium.org>
parent 369cd216
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment