summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-12-12 11:50:00 +1000
committerSteve French <stfrench@microsoft.com>2018-12-23 22:41:26 -0600
commit52baa51d30573273341b78a3e3ed0d9a845d3e55 (patch)
treec0507fb9cccea71689092398071e673d83daa991 /Kbuild
parent0f57451eebf1945790785df106497bf62812f62a (diff)
downloadlinux-52baa51d30573273341b78a3e3ed0d9a845d3e55.tar.bz2
cifs: remove coverity warning in calc_lanman_hash
password_with_pad is a fixed size buffer of 16 bytes, it contains a password string, to be padded with \0 if shorter than 16 bytes but is just truncated if longer. It is not, and we do not depend on it to be, nul terminated. As such, do not use strncpy() to populate this buffer since the str* prefix suggests that this is a string, which it is not, and it also confuses coverity causing a false warning. Detected by CoverityScan CID#113743 ("Buffer not null terminated") Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions