Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2004 12:14:03 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        des@des.no
Cc:        current@freebsd.org
Subject:   Re: recent libalias changes
Message-ID:  <20040706111403.GA68327@walton.maths.tcd.ie>
In-Reply-To: <xzpeknpbg0t.fsf@dwp.des.no>
References:  <20040705133820.GA9159@stud.fit.vutbr.cz> <xzp1xjqbhee.fsf@dwp.des.no> <20040705161059.GA52584@walton.maths.tcd.ie> <xzpsmc6a02c.fsf@dwp.des.no> <xzpoemu9zfe.fsf@dwp.des.no> <20040706082906.GA50212@stud.fit.vutbr.cz> <xzpeknpbg0t.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 06, 2004 at 12:12:50PM +0200, des@des.no wrote:
> Done.  Could you please also test this one?  It fixes an aliasing
> violation in another checksum function in libalias (at least
> partially, I may have to rewrite the entire function).

The bit of the function that the patch changes seems to only be
accessing the data through char types, which the C standard says
can alias any type. The while loop that is immediately above it
looks risky though, as this function is probably called with a
struct ip * somewhere.

I guess this may not cause problems in practice because this function
isn't an inline and isn't called from the same file as it is defined
in, so it is probably too hard for gcc to do the strict aliasing
thing.

	David.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040706111403.GA68327>