qemu-e2k/hw/9pfs
Marc-André Lureau 6ce7177ae2 9p: fix leak in synth_name_to_path()
Leak found thanks to ASAN:

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x55995789ac90 in __interceptor_malloc (/home/elmarco/src/qemu/build/x86_64-softmmu/qemu-system-x86_64+0x1510c90)
    #1 0x7f0a91190f0c in g_malloc /home/elmarco/src/gnome/glib/builddir/../glib/gmem.c:94
    #2 0x5599580a281c in v9fs_path_copy /home/elmarco/src/qemu/hw/9pfs/9p.c:196:17
    #3 0x559958f9ec5d in coroutine_trampoline /home/elmarco/src/qemu/util/coroutine-ucontext.c:116:9
    #4 0x7f0a8766ebbf  (/lib64/libc.so.6+0x50bbf)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
2018-02-19 18:27:32 +01:00
..
9p-handle.c Move include qemu/option.h from qemu-common.h to actual users 2018-02-09 13:52:16 +01:00
9p-local.c Move include qemu/option.h from qemu-common.h to actual users 2018-02-09 13:52:16 +01:00
9p-local.h
9p-posix-acl.c
9p-proxy.c Move include qemu/option.h from qemu-common.h to actual users 2018-02-09 13:52:16 +01:00
9p-proxy.h
9p-synth.c 9p: fix leak in synth_name_to_path() 2018-02-19 18:27:32 +01:00
9p-synth.h tests: virtio-9p: add FLUSH operation test 2018-02-02 11:11:55 +01:00
9p-util.c
9p-util.h
9p-xattr-user.c
9p-xattr.c
9p-xattr.h 9pfs: fix XattrOperations typedef 2018-01-08 11:18:22 +01:00
9p.c 9p: v9fs_path_copy() readability 2018-02-19 18:27:15 +01:00
9p.h 9p: v9fs_path_copy() readability 2018-02-19 18:27:15 +01:00
codir.c
cofile.c
cofs.c
coth.c
coth.h
coxattr.c
Makefile.objs 9pfs: fix dependencies 2017-08-30 18:23:25 +02:00
trace-events 9pfs: Correctly handle cancelled requests 2018-02-01 21:21:27 +01:00
virtio-9p-device.c 9pfs: drop v9fs_register_transport() 2018-02-01 21:21:27 +01:00
virtio-9p.h
xen-9p-backend.c Move include qemu/option.h from qemu-common.h to actual users 2018-02-09 13:52:16 +01:00
xen-9pfs.h