[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/6] hw/9pfs/virtio-9p-posix-acl: Fix out-of-bounds
From: |
Aneesh Kumar K.V |
Subject: |
[Qemu-devel] [PATCH 3/6] hw/9pfs/virtio-9p-posix-acl: Fix out-of-bounds access |
Date: |
Mon, 16 Mar 2015 15:39:40 +0530 |
From: Shannon Zhao <address@hidden>
It's detected by coverity. Fix out-of-bounds access of the function
mp_dacl_listxattr.
Signed-off-by: Shannon Zhao <address@hidden>
Signed-off-by: Shannon Zhao <address@hidden>
Signed-off-by: Aneesh Kumar K.V <address@hidden>
---
hw/9pfs/virtio-9p-posix-acl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/9pfs/virtio-9p-posix-acl.c b/hw/9pfs/virtio-9p-posix-acl.c
index 803d9d94f3b8..09dad071e487 100644
--- a/hw/9pfs/virtio-9p-posix-acl.c
+++ b/hw/9pfs/virtio-9p-posix-acl.c
@@ -114,7 +114,7 @@ static ssize_t mp_dacl_listxattr(FsContext *ctx, const char
*path,
}
/* len includes the trailing NUL */
- memcpy(value, ACL_ACCESS, len);
+ memcpy(value, ACL_DEFAULT, len);
return 0;
}
--
2.1.0
- [Qemu-devel] [PULL] VirtFS update, Aneesh Kumar K.V, 2015/03/16
- [Qemu-devel] [PATCH 5/6] virtfs-proxy: Fix possible overflow, Aneesh Kumar K.V, 2015/03/16
- [Qemu-devel] [PATCH 3/6] hw/9pfs/virtio-9p-posix-acl: Fix out-of-bounds access,
Aneesh Kumar K.V <=
- [Qemu-devel] [PATCH 1/6] 9pfs-local: simplify/optimize local_mapped_attr_path(), Aneesh Kumar K.V, 2015/03/16
- [Qemu-devel] [PATCH 6/6] virtio: Fix memory leaks reported by Coverity, Aneesh Kumar K.V, 2015/03/16
- [Qemu-devel] [PATCH 4/6] fsdev/virtfs-proxy-helper: Fix improper use of negative value, Aneesh Kumar K.V, 2015/03/16
- [Qemu-devel] [PATCH 2/6] 9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv, Aneesh Kumar K.V, 2015/03/16
- Re: [Qemu-devel] [PULL] VirtFS update, Peter Maydell, 2015/03/16