|
|
|
|
|
by dbaupp
4366 days ago
|
|
There is some subtlety about dereferencing a null pointer. Many languages (C, C++, Rust) state that *NULL is undefined behaviour, that is, the compiler can assume that it never happens and optimises based on this. This can lead to a "misoptimised" program that doesn't actually segfault when the source suggests it should. http://blog.llvm.org/2011/05/what-every-c-programmer-should-... |
|