Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in strict-aliasing

how use a structure in a unaligned buffer

Examples using reinterpret_cast that do not trigger UB

Why doesn't strict aliasing rule apply to int* and unsigned*?

When is char* safe for strict pointer aliasing?

c sockets strict-aliasing

Is it undefined behavior to `reinterpret_cast` a `T*` to `T(*)[N]`?

Casting pointer to unrelated type

c strict-aliasing

Can two structs in C99/C11 alias?

c strict-aliasing

Structure over flexible array member

c c99 strict-aliasing

Is this short program legal C++? [closed]

c++ strict-aliasing

Does strict aliasing apply when using pointers to struct members?

c strict-aliasing

Comparing struct pointers, casting away members, and UB

union for uint32_t and uint8_t[4] undefined behavior? [duplicate]

Casting the "this" pointer to another type does not violate strict aliasing?

This piece of code breaks strict aliasing rule?

c++ strict-aliasing

Does reading or writing a whole 32-bit word, even though we only have a reference to a part of it, result in undefined behaviour?

How to cast sockaddr_storage and avoid breaking strict-aliasing rules