qemu-patch-raspberry4/qga
zhanghailiang e668d1b854 qga: Rewrite code where using readdir_r
If readdir_r fails, error_setg_errno will reference the freed
pointer *dirpath*.

Moreover, readdir_r may cause a buffer overflow, using readdir instead.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-10-22 07:49:52 -05:00
..
vss-win32
channel-posix.c channel-posix: using qemu_set_nonblock() instead of fcntl(O_NONBLOCK) 2014-08-15 18:03:13 +01:00
channel-win32.c
channel.h
commands-posix.c qga: Rewrite code where using readdir_r 2014-10-22 07:49:52 -05:00
commands-win32.c qga: Disable unsupported commands by default 2014-08-07 17:15:53 -05:00
commands.c
guest-agent-command-state.c
guest-agent-core.h qga: Disable unsupported commands by default 2014-08-07 17:15:53 -05:00
main.c qga: Disable unsupported commands by default 2014-08-07 17:15:53 -05:00
Makefile.objs
qapi-schema.json
service-win32.c
service-win32.h
vss-win32.c
vss-win32.h