diff options
author | Kees Cook <keescook@chromium.org> | 2024-02-02 12:18:14 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-02-21 05:47:31 +0100 |
commit | f478898e0aa74a759fcf629a3ee8b040467b8533 (patch) | |
tree | a4ce041e524eb2eb11a998b3ba09eec0bf3ec69d /block/bdev.c | |
parent | ubsan: Reintroduce signed overflow sanitizer (diff) | |
download | linux-f478898e0aa74a759fcf629a3ee8b040467b8533.tar.xz linux-f478898e0aa74a759fcf629a3ee8b040467b8533.zip |
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 'block/bdev.c')
0 files changed, 0 insertions, 0 deletions