C-C++ 中的安全编码
Secure Coding in C - C + +
- 1. Introduction to Secure Programming
- 1. A Turbulent Tale System Crash at 30,000 Feet
- 2. What You Should Know
- 2. Balancing Freedom and Responsibility
- 1. The Hazards of Manual Memory Management
- 2. Pointer Pitfalls
- 3. The Double-Edged Sword Low-Level System Access
- 4. Risky Type Conversions
- 5. Library Landmines Dangerous Functions
- 6. Tread with Caution Legacy Code
- 3. Common Security Flaws in C and C++ Programming
- 1. Unleashing Chaos with Stack and Heap Overflows
- 2. Overstepping Limits Integer Overflows
- 3. Uncontrolled Format Strings When Small Mistakes Cause Big Problems
- 4. The Dangers of Improper Error Handling
- 5. When Code Collides Race Conditions
- 4. Principles of Secure C and C++ Programming
- 1. Minimizing Attack Surface Area
- 2. Principle of Least Privilege
- 3. Fail-safe Defaults
- 4. Defense in Depth
- 5. Secure Memory Management in C and C++
- 1. C Memory Management
- 2. C Memory Management Mistakes - Part 1
- 3. C Memory Management Mistakes - Part 2
- 4. Beyond the Basics Subtle C Memory Management Errors
- 6. Conclusion
- 1. Where to Go from Here