virtfs-proxy: Fix possible overflow
commit25ee9a7fa3f4e09fde48bb184447ff5651ed5fd8
authorShannon Zhao <zhaoshenglong@huawei.com>
Sat, 14 Mar 2015 02:00:16 +0000 (14 10:00 +0800)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 16 Mar 2015 07:59:12 +0000 (16 13:29 +0530)
tree13f531dfa9dfedca628554ac6f48b9566acd3c44
parent821c447675728ca06c8d2e4ac8a0e7a1adf775b8
virtfs-proxy: Fix possible overflow

It's detected by coverity. The socket name specified
should fit in the sockadd_un.sun_path. If not abort.

Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
fsdev/virtfs-proxy-helper.c
hw/9pfs/virtio-9p-proxy.c