git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20ee8b0
)
s3: VFS: default. Change sys_pread() -> sys_pread_full() in SMB_VFS_PREAD() to protec...
author
Jeremy Allison
<jra@samba.org>
Thu, 7 May 2020 19:43:34 +0000
(12:43 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 12 May 2020 19:53:44 +0000
(19:53 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14361
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/modules/vfs_default.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_default.c
b/source3/modules/vfs_default.c
index b5fbc0ed5dc430da76d947104e2f1101e8d3f4cf..f76d7c7b918b5e0c8591a608522c03495ea5f3c0 100644
(file)
--- a/
source3/modules/vfs_default.c
+++ b/
source3/modules/vfs_default.c
@@
-734,7
+734,7
@@
static ssize_t vfswrap_pread(vfs_handle_struct *handle, files_struct *fsp, void
#if defined(HAVE_PREAD) || defined(HAVE_PREAD64)
START_PROFILE_BYTES(syscall_pread, n);
- result = sys_pread(fsp->fh->fd, data, n, offset);
+ result = sys_pread
_full
(fsp->fh->fd, data, n, offset);
END_PROFILE_BYTES(syscall_pread);
if (result == -1 && errno == ESPIPE) {