Search code examples
Why can't linux write more than 2147479552 bytes?...

clinuxundefined-behavior

Read More
What happens if memory for a format string is shared with one of the arguments of printf?...

cprintfundefined-behaviorformat-stringrestrict-qualifier

Read More
When is it valid to access a pointer to a "dead" object?...

cpointerslanguage-lawyerundefined-behavior

Read More
Is there a failsafe way to determine the alignment/trailing bits of a pointer in C?...

cpointerstype-conversioncross-platformundefined-behavior

Read More
Why do shared_ptr and unique_ptr have different behavior when dtors are not virtual?...

c++memory-leaksundefined-behaviorvirtual-inheritance

Read More
const_cast vs mutable and undefined behavior...

c++undefined-behaviormutableconst-cast

Read More
Writing out of boundary matrix...

cmemoryundefined-behavior

Read More
Linked list without malloc...

cmallocundefined-behaviorsingly-linked-liststorage-duration

Read More
Placement new + reinterpret_cast in C++14: well-formed?...

c++language-lawyerundefined-behaviorreinterpret-caststrict-aliasing

Read More
Not returning from a function is not an error?...

c++undefined-behavior

Read More
Is moving the target of a raw Pointer safe in rust...

rustundefined-behaviorraw-pointer

Read More
Passing a temporary by const pointer instead of const reference; is this workaround well-formed?...

c++language-lawyerundefined-behaviorlifetime

Read More
"*s = 0" being optimized out. Possible GCC 13 bug? Or some undefined behaviour?...

cgccundefined-behavior

Read More
Why is the C preprocessor a subject of undefined behavior?...

clanguage-lawyerc-preprocessorundefined-behaviorc11

Read More
Safety of using std::ptr::write_volatile for interior mutability in a Copy type (i.e. without Unsafe...

optimizationrustcompiler-optimizationundefined-behavior

Read More
Downcasting base class instance to empty child interface...

c++undefined-behaviordowncast

Read More
What's a proper way of type-punning a float to an int and vice-versa?...

c++undefined-behaviorgcc-warningstrict-aliasingtype-punning

Read More
C++ casting int into enum then read that enum as bit field safe or not?...

c++serializationenumsunionundefined-behavior

Read More
Find a value y such (x < y) == (-x > -y) will be false, when x is a signed integer and x=1?...

cundefined-behaviorinteger-overflow

Read More
Reserve memory in base class to be used in derived class c++...

c++structundefined-behaviorderived-classbit-fields

Read More
Is viewing an integer as an array of smaller integers UB?...

c++undefined-behavior

Read More
C++ why does va_start expect the last non-variadic function argument?...

cundefined-behaviorvariadic-functions

Read More
reinterpret_cast of pointer-to-pointer - is it Undefined Behavior?...

c++language-lawyerundefined-behavior

Read More
Generating prefix bitmasks...

c++cbit-manipulationundefined-behaviorbranchless

Read More
Why doesn't deleting a pointer make it unusable?...

c++pointersmemory-leaksundefined-behaviordelete-operator

Read More
Does dereferencing deleted pointers always result in a crash?...

c++pointersvisual-c++crashundefined-behavior

Read More
Are you allowed to copy a pointer and call delete on the copy?...

c++undefined-behaviordelete-operator

Read More
Is it undefined behavior to access the object representation of a pointer through a char*?...

clanguage-lawyerundefined-behaviorstrict-aliasing

Read More
Is casting strings from `wchar_t` to `char16_t` legal if encoding and width is the same?...

c++c++17language-lawyerundefined-behaviorstrict-aliasing

Read More
Is accessing a member of an unaligned union undefined behavior even if the member being accessed is ...

clanguage-lawyerundefined-behaviorunionsmemory-alignment

Read More
BackNext