Embedded C and C++: A Security Perspective
summary
C and C++ still cause recurring security faults like out‑of‑bounds writes (top CWE) despite years of experience, and switching languages is slow and costly. The claim: C++ language features can systematically prevent common mistakes. Concrete patterns shown: tainted<T> wrapper that forces verification or sanitization via private access, references for non‑null to eliminate scattered null checks, and an encapsulated single‑read buffer to avoid TOCTOU race vulnerabilities by buffering shared memory before use. These techniques compile-time enforce safer use and reduce exploitable faults.
AI-written summary · about
chapters (8)
- 0:00Introduction and background
- 1:30Security risks in C and C++
- 4:01Memory safety and stack vulnerabilities
- 7:32Industry reliance on C and C++
- 8:57Input validation with C++ classes
- 10:47Null pointer safety in C++
- 11:48Time-of-check to time-of-use flaws
- 13:59Summary and future outlook
related talks
51mSecure Programming Practices in C++
01h 06mSecurity Beyond Memory Safety - Using Modern C++ to Avoid Vulnerabilities by Design
43mC++ and Security: Can We Do Better?
01h 28mKeynote: Safety, Security, Safety and C / C++ - C++ Evolution
01h 04mC++ and Safety
23mSecure Code, Safe Future: Mastering Security in Critical Software Development
01h 26mVulnerable C++
01h 01mSoftware Security
