summaryrefslogtreecommitdiff
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2022-07-12 11:43:44 -0500
committerSteve French <stfrench@microsoft.com>2022-08-01 01:34:44 -0500
commit5fa2cffba0b82336a2244d941322eb1627ff787b (patch)
treebd80b7d35630355cea0739b43c1df43cbd217151 /fs/cifs/cifssmb.c
parent3d7cb6b04c3f3115719235cc6866b10326de34cd (diff)
smb3: check xattr value length earlier
Coverity complains about assigning a pointer based on value length before checking that value length goes beyond the end of the SMB. Although this is even more unlikely as value length is a single byte, and the pointer is not dereferenced until laterm, it is clearer to check the lengths first. Addresses-Coverity: 1467704 ("Speculative execution data leak") Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
0 files changed, 0 insertions, 0 deletions