[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] hw/9pfs/virtio-9p-posix-acl: Fix out-of-bound
From: |
Shannon Zhao |
Subject: |
Re: [Qemu-trivial] [PATCH] hw/9pfs/virtio-9p-posix-acl: Fix out-of-bounds access |
Date: |
Fri, 13 Mar 2015 17:43:52 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 2015/3/13 16:31, Aneesh Kumar K.V wrote:
> Shannon Zhao <address@hidden> writes:
>
>> 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>
>> ---
>> 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 803d9d9..09dad07 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;
>> }
>
> Applied.
>
Thanks :-)
> Thanks
> -aneesh
>
>
> .
>