Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

If Derived adds no new members to Base (and is POD), then what kind of pointer casts, and dereferencing, can be safely done?

How to reinterpret a sequence of bytes as a POD structure without causing UB?

Does i++ invoke undefined behavior for signed types smaller than int in case of overflow?

Strict aliasing and references to compile-time C arrays

initialization order of thread_local vs. global variables

Consistency and behavior of %n operator in *scanf

Member function pointer of forward declared class

Does `printf("%.-1s\n", "foo")` invoke undefined behaviour?

C++ UBSAN produces false positives with derived objects

C - function returning a pointer to a local variable

c undefined-behavior

Undefined Behaviour in C99 related to adjusted parameters

Undefined behaviour on std::prev for transform-view

Is the "laundry" propagated by pointer arithmetic?

Sequence points and side effects in C

Is a misaligned load due to a cast undefined behavior?

Is there a way, in tests, to defend against "correct" results coming out of undefined behavior?

Why in Ruby, a || 1 will throw an error when `a` is undefined, but a = a || 1 will not?

Does this const initialization through const_cast have undefined behaviour?

Is full followed by partial initialization of a subobject undefined behavior?

How to suppress some unsigned-integer-overflow errors from UBsan?