Steve French 720f6112c3 smb3: check xattr value length earlier
[ Upstream commit 5fa2cffba0b82336a2244d941322eb1627ff787b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:18:38 +02:00
..
2020-10-29 09:57:28 +01:00
2020-12-02 08:49:45 +01:00
2019-09-26 16:37:43 -05:00
2020-11-05 11:43:21 +01:00
2019-09-24 23:31:32 -05:00
2019-09-23 23:28:59 -05:00