diff options
author | Steve French <stfrench@microsoft.com> | 2022-07-12 11:43:44 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-01 01:34:44 -0500 |
commit | 5fa2cffba0b82336a2244d941322eb1627ff787b (patch) | |
tree | bd80b7d35630355cea0739b43c1df43cbd217151 /fs/cifs/fs_context.c | |
parent | 3d7cb6b04c3f3115719235cc6866b10326de34cd (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/fs_context.c')
0 files changed, 0 insertions, 0 deletions