diff options
author | Marc-André Lureau | 2021-07-19 14:54:17 +0200 |
---|---|---|
committer | Marc-André Lureau | 2021-08-04 21:23:31 +0200 |
commit | 4cfd970ec188558daa6214f26203fe553fb1e01f (patch) | |
tree | 8a7abf6eb1f7f207b6181168b3c5efc842df0ccc /chardev | |
parent | Update version for v6.1.0-rc2 release (diff) | |
download | qemu-4cfd970ec188558daa6214f26203fe553fb1e01f.tar.gz qemu-4cfd970ec188558daa6214f26203fe553fb1e01f.tar.xz qemu-4cfd970ec188558daa6214f26203fe553fb1e01f.zip |
util: fix abstract socket path copy
Commit 776b97d360 "qemu-sockets: add abstract UNIX domain socket
support" neglected to update socket_sockaddr_to_address_unix() and
copied the whole sun_path without taking "salen" into account.
Later, commit 3b14b4ec49 "sockets: Fix socket_sockaddr_to_address_unix()
for abstract sockets" handled the abstract UNIX path, by stripping the
leading \0 character and fixing address details, but didn't use salen
either.
Not taking "salen" into account may result in incorrect "path" being
returned in monitors commands, as we read past the address which is not
necessarily \0-terminated.
Fixes: 776b97d3605ed0fc94443048fdf988c7725e38a9
Fixes: 3b14b4ec49a801067da19d6b8469eb1c1911c020
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: xiaoqiang zhao <zxq_yx_007@163.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'chardev')
0 files changed, 0 insertions, 0 deletions