Anche questo link può fare al caso tuo.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum