News for hackers. Stuff that matters.
Re:C puzzles by gowrikumar on Thursday November 10, 2016 @04:32PM (#12924598)
Yup! that's correct. Later versions of compilers have become intelligent with standard library function and I doubt if this reproes on the current compilers - for standard library functions.
Re:C puzzles by mikeash on Friday November 11, 2016 @09:33AM (#12930907)
It definitely doesn't happen in whatever recent versions of clang and gcc I tested with. I had to wrap malloc in a function that the compiler didn't have a special case for in order to make reproduce the crash.