Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

`u8string_view` into a `char` array without violating strict-aliasing?

What can I assume about the behaviour of atoi() on error?

How can calling a function pointer saved from a previous execution fail?

c++ undefined-behavior

How can I read a signed integer from a buffer of uint8_t without invoking un- or implementation-defined behaviour?

C++ function attribute to indicate lifetime of return value is same as argument

c++ gcc g++ undefined-behavior

Does std::ptr::write transfer the "uninitialized-ness" of the bytes it writes?

Is calling a "noexcept function" through a "function" lvalue undefined?

Can one element of a tuple reference another?

Is it okay for int** and const int** to alias?

How is gcc optimizing this loop?

Is modifying the internal bytes of a const object undefined behavior in case it contains another object constructed by placement new?

How to synchronize multithreaded OpenGL buffer access?

Is it well-defined behavior to modify one element of an array while another thread modifies another element of the same array?

Dealing with undefined behavior when using reinterpret_cast in a memory mapping

TDD: Test member initialization deterministically, given undefined behavior in C++

Undefined behavior, or: Does Swift have sequence points?

Cast T[][] to T*

Is it safe and defined behavior to transmute between a T and an UnsafeCell<T>?

Where is the undefined behavior when using const_cast<>?

Is the 16-bit math in this program invoking undefined behavior?