Search code examples
At what point does dereferencing the null pointer become undefined behavior?...

c++objectnullundefined-behaviordereference

Read More
Branch prediction and UB (undefined behavior)...

c++ccpu-architectureundefined-behaviorbranch-prediction

Read More
Is it undefined behaviour to use pointer after allocated memory?...

clanguage-lawyerundefined-behavior

Read More
changing a value of a class pointer in const Class function gives an error in some compiler but not ...

c++pointersundefined-behavior

Read More
How can you repurpose an array of floats as an array of doubles without undefined behavior?...

c++undefined-behaviorstrict-aliasingtype-punning

Read More
Is it okay to use 'static for references to Box in self referential structs?...

rustundefined-behaviorunsafeself-reference

Read More
Why is optimization forbidden if a C compiler cannot prove lack of UB?...

coptimizationcompiler-optimizationundefined-behaviorinteger-overflow

Read More
cast char * to void **...

cundefined-behaviortype-punning

Read More
Does the C++ standard allow for an uninitialized bool to crash a program?...

c++llvmundefined-behaviorabillvm-codegen

Read More
Is accessing arrays out-of-bounds legal if what lies beyond those bounds is known in C? If not why n...

arrayscundefined-behavior

Read More
Why does this work: returning C string literal from std::string function and calling c_str()...

c++undefined-behaviorstdstringtemporary-objects

Read More
++i + ++i + ++i in Java vs C...

javacundefined-behavioroperator-precedence

Read More
downcasting standard layout struct to derived struct with the same data members...

c++language-lawyerundefined-behaviortype-punning

Read More
Engineered bool compares equal to both true and false, why?...

c++booleanundefined-behavior

Read More
Is it really well defined to check pointer alignment using the pointer's integer value?...

c++pointersc++17language-lawyerundefined-behavior

Read More
Temporary in a function call: UB?...

c++language-lawyerundefined-behavior

Read More
Are these expressions involving compound literals defined in C?...

clanguage-lawyerundefined-behavior

Read More
Is it undefined behavior to modify a value that I also have a const pointer pointing to...

cpointersconstantsundefined-behavior

Read More
Can I assign or return a struct with unassigned elements in C?...

cstructinitializationlanguage-lawyerundefined-behavior

Read More
Is i += ++i undefined behavior in C++11?...

c++c++11undefined-behaviorcompound-assignment

Read More
Is (++i)++ undefined behavior?...

c++c++11language-lawyerundefined-behaviorsequence-points

Read More
C++ "Undefined" vs "Unspecified" behavior for function calls: f(i=-2, i=-2) is n...

c++c++17undefined-behaviorfunction-callunspecified-behavior

Read More
Why doesn't -fsanitize=undefined pick up on (what I think is) UB?...

c++g++undefined-behaviorsanitizer

Read More
Function not called in code gets called at runtime...

c++clangcompiler-optimizationundefined-behaviorclang++

Read More
std::launder do not work on gcc with -O3 option?...

c++c++17undefined-behaviorstdlaunder

Read More
Does the definition int a = 0, b = a++, c = a++; have defined behavior in C?...

clanguage-lawyerundefined-behaviorsequence-pointsc17

Read More
Can you ensure overflow wrapping behavior for signed integer arithmetic in C++?...

c++mathintegerundefined-behavior

Read More
What optimizations are possible when loop variable is undefined on overflow?...

ccompiler-optimizationundefined-behaviorinteger-overflow

Read More
Does any popular compiler exploit undefined behaviors when optimization is off?...

cundefined-behavior

Read More
Segmentation Fault while running following C program...

arrayscfor-loopundefined-behaviorstring-literals

Read More
BackNext