diff options
author | bz <bz@FreeBSD.org> | 2016-02-07 22:53:03 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-02-07 22:53:03 +0000 |
commit | 6b0dbb3b46a79900978eaf6d04c03edb0c857e5b (patch) | |
tree | 6b1b784ea602712ddf2166163226674f1500dc3c /contrib/netbsd-tests/lib/libc | |
parent | f97dd8fd40358fe1b7b39c278fdc20fbd9bacfe2 (diff) | |
download | FreeBSD-src-6b0dbb3b46a79900978eaf6d04c03edb0c857e5b.zip FreeBSD-src-6b0dbb3b46a79900978eaf6d04c03edb0c857e5b.tar.gz |
MFC r295202:
Try to fix a bug introduced in r228623 (head).
We started to copy the ifa_msghdr as otherwise platforms with strict
alignment would break. It is unclear to me if there's also a problem with
access to the address list following the structure.
However we never copied the address list after the structure and thus are
pointing at random memory. For now just use a pointer to the original
memory for accessing the address list making it at least work on
platforms with weak memory access.
PR: 195445
Reported by: wolfgang lyxys.ka.sub.org
Tested by: wolfgang lyxys.ka.sub.org (x86)
Approved by: re (marius)
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
0 files changed, 0 insertions, 0 deletions