Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2008 14:02:09 +0100
From:      Willem Jan Withagen <wjw@digiware.nl>
To:        =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: sshd broken on arm?
Message-ID:  <4799DDD1.9050201@digiware.nl>
In-Reply-To: <86hch25als.fsf@ds4.des.no>
References:  <479880A7.1030107@digiware.nl>	<20080124.084828.1608359032.imp@bsdimp.com>	<864pd386mj.fsf@ds4.des.no> <20080124.110954.179240992.imp@bsdimp.com>	<47991E08.6070609@digiware.nl>	<20080125041540.GA30262@zibbi.meraka.csir.co.za>	<4799A2B3.4060003@digiware.nl> <86prvq5eua.fsf@ds4.des.no>	<20080125113916.GP81396@plum.flirble.org> <86hch25als.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote:
> It is an array of char, and char has no special alignment requirement.
> 
> The bug is in the code, which uses pointer aliasing in a way that is
> strictly speaking legal but which places responsibility for alignment
> issues squarely in the code and not the compiler.

This is exactly what I ment by 'obfuscated code' and a liberal language 
like 'C'.

--WjW



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