C++ Security Fundamentals: From Standards to Practice
summary
C++ exposes undefined, unspecified and implementation-defined behaviors that can silently corrupt systems; the C standard lists undefined behavior but C++ lacks that single annex. Practical defenses mix standards, tooling and rules: MISRA C++ 2023 (covers up to C++17, roughly 179 guidelines) plus static analysis like clang-tidy and Sonar enforce decidable rules (no goto) and flag conflicts (mandatory default labels vs unreachable-statement rules), while proposals like a safe keyword and smart pointers aim to reduce common UB; wholesale migration away from C++ is judged impractical.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker intro
- 1:12Why C++ is unsafe and unpredictable
- 6:10Undefined vs unspecified behavior in C++
- 13:30C++ safety and security fundamentals
- 17:15Migrating away from C++ is not feasible
- 21:12Solutions and standards for safer C++
- 27:39Enforcement and coding practices
- 32:18MISRA C++ guidelines explained
- 41:20Benefits of adopting MISRA C++
- 47:51Summary and conclusion
