News for hackers. Stuff that matters.
Re:Undefined behavior is often a thing for C programmers (2011) by sharpneli on Thursday September 03, 2020 @10:24AM (#24364364)
With a nonoptimizing compiler the first example just segfaults at dereferencing P.

I’m not quite sure what the compiler is supposed to do in that case. Insert nullchecks by itself to avoid crashes?

There are no comments on this comment yet.