AntiPattern
Compiler and Memory Order Bugs
broken-memory-and-concurrency-invariants
Memory-safety and concurrency invariants get broken because the code relies on compiler/runtime assumptions (paths not executed, CAS ordering too strong/weak), while externally supplied indices/pointers corrupt heap structures, leading to heap buffer overflows and illegal memory access.