]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit709ac5b7f0cd60c480dc1be9fcb86279475a3a12
tree9823085f935744bcb2df673caf0b926cbee7af6b
parent953f0a31676a359cd09c0673c482db80c97ace3a
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