Commit b019e11
committed
CIFS: Clarify SMB1 code for UnixSetPathInfo
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 doing SetPathInfo (setattr) when using the Unix
extensions. This doesn't change the address but makes it
slightly clearer.
Addresses-Coverity: 711528 ("Out of bounds read")
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent ded2d99 commit b019e11
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6064 | 6064 | | |
6065 | 6065 | | |
6066 | 6066 | | |
6067 | | - | |
6068 | | - | |
6069 | | - | |
| 6067 | + | |
| 6068 | + | |
6070 | 6069 | | |
6071 | 6070 | | |
6072 | 6071 | | |
| |||
0 commit comments