Commit 9ee2afe
cifs: prevent copying past input buffer boundaries
Prevent copying past @DaTa buffer in smb2_validate_and_copy_iov() as
the output buffer in @Iov might be potentially bigger and thus copying
more bytes than requested in @minbufsize.
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 69ccafd commit 9ee2afe
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3485 | 3485 | | |
3486 | 3486 | | |
3487 | 3487 | | |
3488 | | - | |
| 3488 | + | |
3489 | 3489 | | |
3490 | 3490 | | |
3491 | 3491 | | |
| |||
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
3612 | | - | |
| 3612 | + | |
3613 | 3613 | | |
3614 | 3614 | | |
3615 | 3615 | | |
| |||
0 commit comments