smbd: add vfs_valid_{pread,pwrite}_range() checks where needed
commit6fa753a1a67d563cd22d0cad73ae15ee267512fc
authorStefan Metzmacher <metze@samba.org>
Mon, 11 May 2020 16:18:24 +0000 (11 18:18 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 12 May 2020 19:53:44 +0000 (12 19:53 +0000)
tree644156e9b7ef912b2895f452794b457917f82665
parent70fa4b884d2c22669984c25fe757c2fc528f7331
smbd: add vfs_valid_{pread,pwrite}_range() checks where needed

I checked all callers of SMB_VFS_PWRITE[_SEND](),
all callers of SMB_VFS_PREAD[_SEND]() and also
places where we append to the file and allocate
more space.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14361

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/rw-invalid
source3/modules/vfs_default.c
source3/smbd/aio.c
source3/smbd/fileio.c
source3/smbd/vfs.c