summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-02-02 14:18:14 +0300
committerKees Cook <keescook@chromium.org>2024-02-21 07:47:31 +0300
commitf478898e0aa74a759fcf629a3ee8b040467b8533 (patch)
treea4ce041e524eb2eb11a998b3ba09eec0bf3ec69d /arch/um
parent557f8c582a9ba8abe6aa0fd734b6f342af106b26 (diff)
downloadlinux-f478898e0aa74a759fcf629a3ee8b040467b8533.tar.xz
string: Redefine strscpy_pad() as a macro
In preparation for making strscpy_pad()'s 3rd argument optional, redefine it as a macro. This also has the benefit of allowing greater FORITFY introspection, as it couldn't see into the strscpy() nor the memset() within strscpy_pad(). Cc: Andy Shevchenko <andy@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: <linux-hardening@vger.kernel.org> Reviewed-by: Justin Stitt <justinstitt@google.com> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'arch/um')
0 files changed, 0 insertions, 0 deletions