Search code examples
Unwanted implicit object creation in an array of std::byte VS char...


c++charundefined-behaviorlifetimestd-byte

Read More
Why is unsigned integer overflow defined behavior but signed integer overflow isn't?...


c++cundefined-behaviorinteger-overflow

Read More
Can a function be marked noexcept if it takes a value type that may throw?...


c++c++11exceptionundefined-behaviornoexcept

Read More
Undefined Behavior when using Comma Operator in C++...


c++c++11c++17undefined-behaviorexpression-evaluation

Read More
What happens if you call free() on non allocated memory returned by a function...


cundefined-behaviorfree

Read More
Interpreting part of an array as an object by casting a pointer to an array element...


c++undefined-behaviorcpu-cachepointer-conversion

Read More
UB or not UB, concurrently operating on static memory in Rust...


rustconcurrencystaticsynchronizationundefined-behavior

Read More
Can macro-dependant access specifiers in a class definition result in undefined behavior?...


c++undefined-behavior

Read More
"Undefined behaviour" always undefined?...


cundefined-behavior

Read More
Is dividing an integer with value 0x80000000 an UB?...


cundefined-behavior

Read More
How can I get the memory distance in bytes between any two objects (if this measurement exists in a ...


c++pointerscachingundefined-behaviorpointer-arithmetic

Read More
Memory Lifetime within a process...


cmemory-managementoperating-systemsegmentation-faultundefined-behavior

Read More
Is shifting 0 to the left considered undefined behavior in C?...


clanguage-lawyerstandardsundefined-behavior

Read More
Can I assign a callable to a std::function with a different return type?...


c++undefined-behaviorstd-function

Read More
Will gcc skip this check for signed integer overflow?...


c++gccundefined-behaviorinteger-overflow

Read More
Is there a sequence point between the evaluation of a function's arguments and the assignment of...


cundefined-behaviorc23

Read More
Where is the undefined behavior when using const_cast<>?...


c++undefined-behaviorconst-cast

Read More
Does calling non-const mem. fun. on const object via non-const ref obtained via const_cast invoke UB...


c++language-lawyerundefined-behaviorconst-cast

Read More
Does the runtime dereference of a nullptr always result in Segmentation Fault?...


c++segmentation-faultundefined-behaviordereferencenullptr

Read More
Treating memory region atomically in Rust...


rustmemory-managementlockingatomicundefined-behavior

Read More
Fun with uninitialized variables and compiler (GCC)...


c++gccinitializationundefined-behavior

Read More
Signed int overflow-underflow cause undefined behaviour but how does the compiler anticipate this?...


c++undefined-behaviorinteger-overflow

Read More
Division by zero: Undefined Behavior or Implementation Defined in C and/or C++?...


c++cundefined-behaviordivide-by-zero

Read More
How to safely cast integer in zig...


castingundefined-behaviorzig

Read More
Detecting signed overflow in C/C++...


c++cundefined-behaviorsignedinteger-overflow

Read More
Is it safe and defined behaviour to cast a pointer to another level of indirection?...


cpointersundefined-behaviorc99

Read More
Is casting `the address of a pointer to a struct` to `the address of a struct whos first member is a...


c++undefined-behaviorreinterpret-castpointer-conversion

Read More
Why is it undefined behavior to delete[] an array of derived objects via a base pointer?...


c++undefined-behaviordynamic-arraysdelete-operator

Read More
Why does this std::weak_ptr apparently prevent freeing memory, and how can I detect this bug?...


c++valgrindundefined-behavioraddress-sanitizerweak-ptr

Read More
Why is it undefined behavior to std::launder a multidimensional array?...


c++undefined-behaviorstdlaunder

Read More
BackNext