Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Does casting to an unrelated reference type violate the strict aliasing rule?

Unexpected memcpy on uncopyable & unmovable type when using co_await

C++23 range-based for loop lifetime fixes interraction with `std::generator` arguments

Is use of uninitialized static object well-defined in C++?

Rust FFI and Aliasing: C -> Rust -> C -> Rust call stacks with C values being aliased: Undefined Behaviour?

rust undefined-behavior ffi

How does casting and calling obj_msgSend() not invoke undefined behavior?

std::bit_cast padding and undefined behavior

Is dereference null pointer UB in C++20?

Is the use of unknown escape sequence invokes undefined behavior in C++?

Little endian and overwriting memory location

Is a conversion from a double to a float always potentially invoking undefined behaviour?

Is it guaranteed that all forms of Undefined Behavior are caught when evaluating a constant expression

All programs were UB before C++20?

Can you return an integer by dereferencing a pointer?

Is the behaviour of std::chrono::round on out-of-range values as intended?

When is an erroneous value not valid for the object's type?

How to correctly use std::arch::_mm_loadu_si128 / _mm_storeu_si128