Commit 2a780e8
committed
CIFS: Clarify SMB1 code for delete
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 SetFileDisposition (which is used to
unlink a file by setting the delete on close flag). This
changeset doesn't change the address but makes it slightly
clearer.
Addresses-Coverity: 711524 ("Out of bounds write")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent e3973ea commit 2a780e8
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5763 | 5763 | | |
5764 | 5764 | | |
5765 | 5765 | | |
5766 | | - | |
| 5766 | + | |
| 5767 | + | |
5767 | 5768 | | |
5768 | 5769 | | |
5769 | 5770 | | |
| |||
0 commit comments