]> git.ipfire.org Git - thirdparty/linux.git/commit
CIFS: Clarify SMB1 code for UnixCreateSymLink
authorSteve French <stfrench@microsoft.com>
Fri, 2 Jul 2021 01:44:27 +0000 (20:44 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 2 Jul 2021 23:36:24 +0000 (18:36 -0500)
commitded2d99cef169a12a1d3961a540728675f525846
tree5f9f436bc103fb953f0d9bdcce1393b09725f9c2
parent819f916c835d0d022117ad97cb3a658546352ab8
CIFS: Clarify SMB1 code for UnixCreateSymLink

Coverity also complains about the way we calculate the offset
(starting from the address of a 4 byte array within the
header structure rather than from the beginning of the struct
plus 4 bytes) for creating SMB1 symlinks when using the Unix
extensions.  This doesn't change the address but
makes it slightly clearer.

Addresses-Coverity: 711530 ("Out of bounds read")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c