News for hackers. Stuff that matters.
Re:GCC Undefined Behavior Sanitizer – Ubsan by taspeotis on Thursday October 16, 2014 @07:38PM (#8468543)
It's been a long time since I've done C/C++ programming. Is the behaviour undefined because of an overflow (number of characters written + number of characters written + number of characters written might > INT_MAX)?

In the general case, that is. I imagine your program (as written) won't see an integer larger than 3.

Re:GCC Undefined Behavior Sanitizer – Ubsan by readerrrr on Thursday October 16, 2014 @07:46PM (#8468577)
The order of the printf() calls is in question. The order of evaluation is unspecified but not undefined.