summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2017-07-27 04:42:12 +0200
committerMichael Tokarev2017-07-31 12:06:38 +0200
commitb2caa3b82edca29ccb5e7d6311ffcf841b9b7786 (patch)
tree588e785a412659094bba0a42db253fdb16c9162e /linux-user
parentui/vnc: fix leak of SocketAddress ** (diff)
downloadqemu-b2caa3b82edca29ccb5e7d6311ffcf841b9b7786.tar.gz
qemu-b2caa3b82edca29ccb5e7d6311ffcf841b9b7786.tar.xz
qemu-b2caa3b82edca29ccb5e7d6311ffcf841b9b7786.zip
net/eth: fix incorrect check of iov_to_buf() return value
So we have sizeof(struct in6_address) != sizeof(uintptr_t) and Clang > Coverity on this, see 4555ca6816c :) net/eth.c:426:30: warning: The code calls sizeof() on a pointer type. This can produce an unexpected result return bytes_read == sizeof(dst_addr); ^ ~~~~~~~~~~ net/eth.c:475:34: warning: The code calls sizeof() on a pointer type. This can produce an unexpected result return bytes_read == sizeof(src_addr); ^ ~~~~~~~~~~ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions