]> www.infradead.org Git - users/jedix/linux-maple.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>
Thu, 26 Aug 2021 02:49:35 +0000 (19:49 -0700)
commited35e2624389cab3e631cea98b48c2c13dfda814
tree0272e7bb86fe6ed7e86ed0a4a5ece5017ad4a40e
parentee3f49bc6e4e43a5af158ab2773825bb8afa6e1f
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