How To Find And Avoid Vulnerabilities In Embedded Compilers
summary
A test harness called SuperTest generates thousands of semantically varied C/C++ programs (including freestanding subset cases for bare‑metal) and compares generated assembly and runtime behavior to detect miscompilations. It reports concrete failures: optimizations that remove needed stores, wrong handling of sequence points and struct field overrides, and conditional‑branch codegen that yields incorrect results. The tool finds real bugs in mainstream compilers, provides per‑test inputs and assembly diffs, and is actively used during qualification to derive mitigation options.
AI-written summary · about
chapters (20)
- 0:00Introduction and company background
- 1:28History of compiler testing
- 3:58Why test compilers for safety
- 6:07SuperTest and compiler testing basics
- 7:34Sequence points in C++ standards
- 9:23Testing logical operators and undefined behavior
- 11:08Compiler evaluation and certification
- 13:34Compiler errors in automotive safety
- 15:23Mitigating compiler weaknesses
- 17:28Runtime errors and undefined behavior
- 21:40Compiler optimizations and pitfalls
- 23:50Fixing compiler issues and support differences
- 26:38Optimization testing and functional requirements
- 29:08Correctness of compiler optimizations
- 31:14Source code and assembly coverage testing
- 33:49Optimization verification with benchmarks
- 37:01Freestanding subset and bare-metal testing
- 38:50Compiler weaknesses and user awareness
- 40:00SuperTest features and usage
- 44:25Q&A and audience discussion
