summaryrefslogtreecommitdiffstats
path: root/hw/cpu/a9mpcore.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2017-07-27 04:42:18 +0200
committerMichael Tokarev2017-07-31 12:06:39 +0200
commit6860710cc3864382a898c847d722f950b5e01a6e (patch)
tree0983297b681c27070cf7aedb84a4af648260486c /hw/cpu/a9mpcore.c
parentsyscall: fix dereference of undefined pointer (diff)
downloadqemu-6860710cc3864382a898c847d722f950b5e01a6e.tar.gz
qemu-6860710cc3864382a898c847d722f950b5e01a6e.tar.xz
qemu-6860710cc3864382a898c847d722f950b5e01a6e.zip
syscall: fix use of uninitialized values
linux-user/syscall.c:1627:35: warning: 1st function call argument is an uninitialized value target_saddr->sa_family = tswap16(addr->sa_family); ^~~~~~~~~~~~~~~~~~~~~~~~ linux-user/syscall.c:1629:25: warning: The left operand of '==' is a garbage value if (addr->sa_family == AF_NETLINK && len >= sizeof(struct sockaddr_nl)) { ~~~~~~~~~~~~~~~ ^ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/cpu/a9mpcore.c')
0 files changed, 0 insertions, 0 deletions