]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: aio_fork: Change sys_pread() -> sys_pread_full() to protect against short...
authorJeremy Allison <jra@samba.org>
Thu, 7 May 2020 19:42:10 +0000 (12:42 -0700)
committerJeremy 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_aio_fork.c

index a1fed5c06557a1bb3d62b19c00cee9e24e1c28e0..285b331ff9cac66ec39386857d750652b9a050f7 100644 (file)
@@ -342,7 +342,7 @@ static void aio_child_loop(int sockfd, struct mmap_area *map)
 
                switch (cmd_struct.cmd) {
                case READ_CMD:
-                       ret_struct.size = sys_pread(
+                       ret_struct.size = sys_pread_full(
                                fd, discard_const(map->ptr), cmd_struct.n,
                                cmd_struct.offset);
 #if 0