Commit e3973ea
committed
CIFS: Clarify SMB1 code for SetFileSize
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 setting the file size using SMB1. This changeset
doesn't change the address but makes it slightly clearer.
Addresses-Coverity: 711525 ("Out of bounds write")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 90810c2 commit e3973ea
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5628 | 5628 | | |
5629 | 5629 | | |
5630 | 5630 | | |
| 5631 | + | |
5631 | 5632 | | |
5632 | | - | |
5633 | | - | |
| 5633 | + | |
5634 | 5634 | | |
5635 | 5635 | | |
5636 | 5636 | | |
| |||
0 commit comments