diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2019-08-27 02:30:14 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-08-28 01:25:12 +0300 |
commit | 340625e618e1b37a72a02f07aa7144ae0ab0b19e (patch) | |
tree | 9bac6626dd3e1477a93301a84c7c797b7db5526c /usr | |
parent | 478228e57f81f6cb60798d54fc02a74ea7dd267e (diff) | |
download | linux-340625e618e1b37a72a02f07aa7144ae0ab0b19e.tar.xz |
cifs: replace various strncpy with strscpy and similar
Using strscpy is cleaner, and avoids some problems with
handling maximum length strings. Linus noticed the
original problem and Aurelien pointed out some additional
problems. Fortunately most of this is SMB1 code (and
in particular the ASCII string handling older, which
is less common).
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions