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.
In the general case, that is. I imagine your program (as written) won't see an integer larger than 3.