Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
Linux 2.6.30 exploit posted
Posted Jul 17, 2009 14:44 UTC (Fri) by trasz (guest, #45786)
Posted Jul 17, 2009 15:11 UTC (Fri) by hegel (guest, #49501)
Posted Jul 18, 2009 9:11 UTC (Sat) by Ross (subscriber, #4065)
In any case, it's not like this would be a good idea for userspace code. If you care enough to check if a pointer is NULL, it should really be done before dereferencing it, otherwise it is too late to stop any undefined behavior. Even if you can be sure an implementation will just crash the program, what's the point of adding code afterwards which isn't reachable?
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds