Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: