OSDN Git Service

fortify: Prepare to improve strnlen() and strlen() warnings
authorKees Cook <keescook@chromium.org>
Wed, 4 Aug 2021 21:20:14 +0000 (14:20 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 25 Sep 2021 15:20:50 +0000 (08:20 -0700)
commit369cd2165d7beac1db144b40811baa2c6b7d8c54
tree9823085f935744bcb2df673caf0b926cbee7af6b
parent072af0c638dc8a5c7db2edc4dddbd6d44bee3bdb
fortify: Prepare to improve strnlen() and strlen() warnings

In order to have strlen() use fortified strnlen() internally, swap their
positions in the source. Doing this as part of later changes makes
review difficult, so reoroder it here; no code changes.

Cc: Francis Laniel <laniel_francis@privacyrequired.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
include/linux/fortify-string.h