News for hackers. Stuff that matters.
Re:Xcode 4 public preview - Single window, LLVM 2.0, streaml... by bbb on Friday July 23, 2010 @11:04AM (#1541343)
The '=' vs. '==' example actually nicely demonstrates the limits of automatic bug hunting. The variable 'rig' is NULL when it is being dereferenced, thus the program will segfault regardless of '=' or '==' being used. The "fix-it" tip is highly misleading.

http://developer.apple.com/technologies/tools/whats-new.html...

(This is probably a side effect of PR people preparing the website; there is no reason why LLVM should not be able to detect this particular kind of NULL-dereference.)

There are no comments on this comment yet.