CERT

Home
More Information
Related Links
References
Code Samples
Additional Articles
Events
Errata

Code Samples

This page contains non-trivial code samples from Secure Coding in C and C++.  The code samples are organized by chapter and named after the figure in which they appear. 

  1. Running with Scissors
  2. Strings
  3. Pointer Subterfuge
  4. Dynamic Memory Management
  5. Integer Security
  6. Formatted Output
  7. File I/O
  8. Recommended Practices

Chapter 1 : Running with Scissors


No code samples in this chapter.

Chapter 2: Strings


Chapter2.zip

Chapter 3: Pointer Subterfuge


Chapter3.zip


Chapter 4: Dynamic Memory Management


Chapter4.zip

Chapter 5: Integer Security


Chapter5.zip


Chapter 6: Formatted Output


Chapter6.zip


Chapter 7: File I/O


Chapter7.zip

Chapter 8: Recommended Practices


No code samples in this chapter.
Last updated October 02, 2006