Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Getting a dangling pointer by returning a pointer from a local C-style array

Operation on ... may be undefined?

c undefined-behavior

Does integer overflow cause undefined behavior because of memory corruption?

Why do constant expressions have an exclusion for undefined behavior?

Is undefined behavior only an issue if you are deploying on several platforms?

c++ undefined-behavior

Do std::min(0.0, 1.0) and std::max(0.0, 1.0) yield undefined behavior?

Code with undefined behavior in C#

c# c++ undefined-behavior

Is std::memcpy between different trivially copyable types undefined behavior?

In C99, is f()+g() undefined or merely unspecified?

When is it valid to access a pointer to a "dead" object?

The behaviour of floating point division by zero

Does initialization entail lvalue-to-rvalue conversion? Is `int x = x;` UB?

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

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

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

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

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

c++ undefined-behavior

Why is this an undefined behavior?

c++ c undefined-behavior

Is accessing a global array outside its bound undefined behavior?

c undefined-behavior

Has C++ standard changed with respect to the use of indeterminate values and undefined behavior in C++14?