Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Is casting of infinity to integer undefined?

c++ undefined-behavior

Can we change the value of an object defined with const through pointers?

How could pairing new[] with delete possibly lead to memory leak only?

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

aligned_storage and strict aliasing

Is it undefined behaviour to delete a null void* pointer?

When NULL is not all-zero-bits, is an all-zero-bit pointer value also 'false'?

So why is i = ++i + 1 well-defined in C++11?

What specific hash algorithm does MessageDigest.getInstance("SHA") return?

Why did this code still work?

c undefined-behavior

What's the best C++ way to multiply unsigned integers modularly safely?

Difference between Undefined Behavior and Ill-formed, no diagnostic message required

Is this undefined behaviour in C ? If not predict the output logically

Is incrementing a pointer to a 0-sized dynamic array undefined?

Is while(1); undefined behavior in C?

Why is out-of-bounds pointer arithmetic undefined behaviour?

c++ undefined-behavior

Copying structs with uninitialized members

"is not required" == undefined behavior?

C standard compliant way to access null pointer address?

Weird behaviour with class fields when adding to a std::vector