Re: [PATCH][CIFS] Clarify code for SMB1 SetFileSize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steve French <smfrench@xxxxxxxxx> writes:

> 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")
> Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx>
> ---
>  fs/cifs/cifssmb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Paulo Alcantara (SUSE) <pc@xxxxxx>



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux