OSDN Git Service

CIFS: Clarify SMB1 code for POSIX Create
authorSteve French <stfrench@microsoft.com>
Thu, 22 Jul 2021 18:50:41 +0000 (13:50 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Jul 2021 18:50:41 +0000 (13:50 -0500)
commit21a64910997e0c1d268bebf9b1217ba5804d592d
tree38f37375d0329f1f3ff74931dd0d8a0e39e3cf34
parentb62366181a5e9473e9c10e98f400049491c55876
CIFS: Clarify SMB1 code for POSIX Create

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 SMB1 CIFSPOSIXCreate. This changeset
doesn't change the address but makes it slightly clearer.

Addresses-Coverity: 711518 ("Out of bounds write")
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c