Syllabus

  1. 01Why C Needs Extra CareHow C's direct control over memory creates whole classes of security bugs, and a first look at spotting them in real code.2 lessons
    1. 01C, Memory and Undefined Behavior
    2. 02Spot the Bugs
  2. 02Buffers and StringsHow buffer overflows happen, which string functions to avoid and which to use instead, and how off-by-one mistakes sneak past even careful programmers.3 lessons
    1. 01Buffer Overflows
    2. 02Safer String Handling
    3. 03Off-by-One Errors
  3. 03Dynamic MemoryLeaks that let attackers exhaust resources, dangling pointers that lead to use-after-free and double free, clear ownership rules that prevent them, and the tools that find them.3 lessons
    1. 01Memory Leaks
    2. 02Use-After-Free and Double Free
    3. 03Tools That Find Memory Bugs
  4. 04Format Strings, Integers and InputWhy user data must never become a format string, how integer overflow and underflow turn into memory corruption, and how to validate numeric input properly.3 lessons
    1. 01Format String Vulnerabilities
    2. 02Integer Overflow and Underflow
    3. 03Validating Input
  5. 05Building and Reviewing SecurelyCompiler and operating system defenses that make bugs harder to exploit, coding standards and review habits that prevent them, and a full walk-through fixing the example program.3 lessons
    1. 01Hardening the Build
    2. 02Coding Standards and Code Review
    3. 03Putting It Together: Fixing the Example