New posts in undefined-behavior

new() without delete() is Undefined Behavior or merely Memory Leak? [duplicate]

Why is locking a std::mutex twice 'Undefined Behaviour'?

C - function returning a pointer to a local variable

Sequence points and side effects in C

Undefined behavior causing time travel

Is infinite loop still undefined behavior in C++ if it calls shared library?

The behaviour of floating point division by zero

Why are arguments which do not match the conversion specifier in printf undefined behavior?

Arithmetic right shift gives bogus result?

Why would code explicitly call a static method via a null pointer?

Is while(1); undefined behavior in C?

Does a[a[0]] = 1 produce undefined behavior?

Why does this implementation of strlen() work?

Why is a = (a+b) - (b=a) a bad choice for swapping two integers?

Is ++x %= 10 well-defined in C++?

Unspecified, undefined and implementation defined behavior WIKI for C

Signed overflow in C++ and undefined behaviour (UB)

Why is this an undefined behavior?

In C++, does initializing a global variable with itself have undefined behaviour?

Is there a platform or situation where dereferencing (but not using) a null pointer to make a null reference will behave badly?