Steve French 6a77b03098 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:45:53 +02:00
..
2021-06-20 21:28:17 -05:00
2022-06-12 11:05:44 -07:00
2022-08-17 15:16:05 +02:00
2020-06-01 00:10:18 -05:00
2022-05-24 14:11:17 -05:00
2022-01-19 11:21:08 -06:00
2022-05-25 07:41:22 -05:00
2022-05-25 07:41:22 -05:00
2022-01-19 11:21:08 -06:00
2022-05-23 20:24:12 -05:00
2019-01-24 09:37:33 -06:00
2022-06-16 18:07:10 -05:00
2021-04-25 16:28:23 -05:00