]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/tcg/multiarch/linux-test: Zero-initialize sockaddr structs
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Aug 2021 15:05:06 +0000 (16:05 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Aug 2021 16:02:00 +0000 (17:02 +0100)
commitbaa873f7508df9f622c9d1ed43d3a03c9cce785c
treea55b948ae881c3145ee3e0883c691c13009da94d
parenta8ca0033c25939d609c1bab12f6b8402ff719552
tests/tcg/multiarch/linux-test: Zero-initialize sockaddr structs

Zero-initialize sockaddr_in and sockaddr_un structs that we're about
to fill in and pass to bind() or connect(), to ensure we don't leave
possible implementation-defined extension fields as uninitialized
garbage.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20210813150506.7768-5-peter.maydell@linaro.org
tests/tcg/multiarch/linux-test.c