4 ms·
> Let it go. Let it crash. Just assume inputs are non-null (except where null makes sense). That's just asking for a disaster. Null pointer dereferences are un
by titzer 9y ago
> Let it go. Let it crash. Just assume inputs are non-null (except where null makes sense).
That's just asking for a disaster. Null pointer dereferences are undefined behavior in C, and compilers can and do make these assumptions, leading to all kinds of horrors. (https://software.intel.com/en-us/blogs/2015/04/20/null-pointer-dereferencing-causes-undefined-behavior https://software.intel.com/en-us/blogs/2015/04/20/null-point...)