News for hackers. Stuff that matters.
Re:Why undefined behavior may call a never-called function by ramshorns on Sunday September 24, 2017 @04:57PM (#15326461)
Well, strictly speaking, it's a bug in the example program. If it were fixed to not invoke undefined behaviour, then this unpredictable thing wouldn't happen.
Re:Why undefined behavior may call a never-called function by lisper on Sunday September 24, 2017 @06:06PM (#15326740)
It's (probably) true that it's a bug in the program, but the sane behavior would be for the program to signal an error resulting from an attempt to dereference the null pointer.