My least favorite C++ feature
summary
Declares C++'s worst feature as memory unsafety and shows how an arbitrary write can overwrite function pointers or vptrs to yield arbitrary code execution, not just crashes. Names practical mitigations: clang CFI, Control Flow Guard, and ARMv8.3 pointer authentication used on Apple platforms, explains each limits exploiting indirect calls and often turns attacks into crashes. Recommends checking which CFI/PAC options the target platform and toolchain actually provide.
AI-written summary · about
chapters (4)
related talks
58mLeveraging C++20/23 Features for Low Level Interactions
01h 05mThe real problem of C++
59mIntroduction to unsafe C#: Calling native code and crashing in entirely new ways
01h 01mMemory Safety: Rust vs. C
42mWhat If We Pretended Unsafe Code Was Nice, And Then It Was?
01h 03mLifetime Safety in C++: Past, Present and Future
07mC++ Hardware Register Access
01h 03mHidden Overhead of a Function API
