Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

reinterpret_cast unsigned char* as uint64_t* - is this UB?

c++ undefined-behavior

Implementing a std::vector like container without undefined behavior

Is it ok to do printing/logging in global object constructor or it's an undefined behavior?

C++11: string(50, 'x') versus string{50, 'x'}

C++: call pure virtual function from member function of same class

Threshold an absolute value

Is over/underflow an undefined behavior at execution time?

Is comparing to a pointer one element past the end of an array well-defined?

C standard regarding pointer arithmetic outside arrays

How does an uninitialized variable get a random value?

Why does returning a reference to a automatic variable work?

Filling a std::array at compile time and possible undefined behaviour with const_cast

How to catch undefined behaviour in function argument initialization

Out of the bounds in C++ and undefined behaviour

Is (++i)++ undefined behavior?

Undefined behavior causing time travel

c++ undefined-behavior

Does calling printf without a proper prototype invoke undefined behavior?

Does this code produce Undefined Behavior or it is merely Unspecified Behavior?

Why worry about 'undefined behavior' in >> of signed type?

Is SSE2 signed integer overflow undefined?