Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Bug in quicksort example (K&R C book)?

Does QObject distinguish between stack and heap allocated children when deleting?

Does comparing a pointer that has been free'd invoke UB?

std::vector<T>::assign using a subrange valid?

c++ undefined-behavior

Can incrementing a pointer without dereferencing still segfault or have other (un)defined nastiness?

IEEE-754 floating point computations, equality and narrowing

Is this use of std::array undefined behavior? [duplicate]

Is this undefined behavior or a false positive warning?

Is pointer comparison undefined or unspecified behavior in C++?

Is this code well-defined regardless of copy elision?

Why is PHP selecting the Random Values like that?

Is `C == C++` undefined behaviour?

c++ undefined-behavior

Convert a uint32_t to an int32_t without either a risk of overflow or excessive complexity

c++ undefined-behavior

Casting a char array to an object pointer - is this UB?

At what point does dereferencing the null pointer become undefined behavior?

If the value of an uninitialized variable shouldn't affect the value of an expression, is it still UB?

Load of misaligned address and UBsan finding

Is the following C union access pattern undefined behavior?

Can guaranteed UB be rejected at compile-time?

Undefined behavior: when attempting to access the result of function call