]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Try to fix a bug introduced in r228623. We started to copy the ifa_msghdr
authorbz <bz@FreeBSD.org>
Wed, 3 Feb 2016 11:03:44 +0000 (11:03 +0000)
committerbz <bz@FreeBSD.org>
Wed, 3 Feb 2016 11:03:44 +0000 (11:03 +0000)
commit5b67986f72e761e7f1f2a034689457476a2357c3
treee569fdecf00119888f81a99112660fa0cfb95ad9
parent71c4d79a10b7c1bad1feb0b4efaaca9c1c9ee341
Try to fix a bug introduced in r228623.  We started to copy the ifa_msghdr
as otherwise platforms with strict alignment would break.  It's 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)
MFC after: 3 days
contrib/bsnmp/snmp_mibII/mibII.c