summaryrefslogtreecommitdiffstats
path: root/scripts/modules
diff options
context:
space:
mode:
authorDaniel P. Berrange2017-06-26 12:37:56 +0200
committerPaolo Bonzini2017-07-04 14:39:27 +0200
commit56382bd5770decbf7ede46e5030e8e348b27009d (patch)
tree4646a2125de255d1ed831598b99a4274cf94e451 /scripts/modules
parenthw/misc/edu: Compile the edu device as common object (diff)
downloadqemu-56382bd5770decbf7ede46e5030e8e348b27009d.tar.gz
qemu-56382bd5770decbf7ede46e5030e8e348b27009d.tar.xz
qemu-56382bd5770decbf7ede46e5030e8e348b27009d.zip
sockets: avoid formatting buffer that may not be NUL terminated
The 'sun_path' field in the sockaddr_un struct is not required to be NUL termianted, so when reporting an error, we must use the separate 'path' variable which is guaranteed terminated. Fixes a bug spotted by coverity that was introduced in commit ad9579aaa16d5b385922d49edac2c96c79bcfb62 Author: Daniel P. Berrange <berrange@redhat.com> Date: Thu May 25 16:53:00 2017 +0100 sockets: improve error reporting if UNIX socket path is too long Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-Id: <20170626103756.22974-1-berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions