Linux "NULL pointer dereferece" in the News...

Tom Horsley tom.horsley at att.net
Sun Jul 19 18:01:07 UTC 2009


On Sun, 19 Jul 2009 23:11:52 +0530
Rahul Sundaram wrote:

> It is not so simple. This is not a compiler bug. I suggest you read
> through http://lwn.net/Articles/341773/rss to understand why.

I did. It is a compiler bug no matter what a bunch of language lawyer
holier than thou compiler developers say :-).

They claim it is undefined by the standard and therefore they can
do whatever they want.

OK, what would reasonable, sane people do in that case? That's right,
they'd fall back on the behavior of just doing what the program source
code says, but no, gcc is too smart for that, gcc's undefined behavior
shows how smart it is and therefore makes much more sense than
doing the obvious :-).




More information about the fedora-list mailing list