Cc: Rene Herman <rene.herman@...>, Jason Uhlenkott <jasonuhl@...>, Arjan van de Ven <arjan@...>, Tim Bird <tim.bird@...>, linux kernel <linux-kernel@...>
On Aug 15, 2007, at 06:20:27, Jan Engelhardt wrote:
Irrespective of whatever the standard says, EVERY platform and
compiler anybody makes nowadays has a NULL pointer value with all
bits clear. Theoretically the standard allows otherwise, but such a
decision would break so much code. Linux especially, we rely on the
uninitialized data to have all bits clear and we depend on that
producing NULL pointers; if a NULL pointer was not bitwise exactly 0
then the test "if (some_ptr != NULL)" would fail and we would start
dereferencing garbage.
Cheers,
Kyle Moffett
-