diff options
author | Kees Cook <keescook@chromium.org> | 2024-02-02 03:40:23 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-02-20 20:47:32 -0800 |
commit | 8366d124ec937c3815212c00daf00b687eb27969 (patch) | |
tree | 76906a05338f7551fe4e42d8d8d5aac6925334b6 /include/linux/overflow.h | |
parent | e6584c3964f2ff76a9fb5a701e4a59997b35e547 (diff) | |
download | linux-8366d124ec937c3815212c00daf00b687eb27969.tar.gz linux-8366d124ec937c3815212c00daf00b687eb27969.tar.bz2 linux-8366d124ec937c3815212c00daf00b687eb27969.zip |
string: Allow 2-argument strscpy_pad()
Similar to strscpy(), update strscpy_pad()'s 3rd argument to be
optional when the destination is a compile-time known size array.
Cc: Andy Shevchenko <andy@kernel.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 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions