Skip to content

What to look for

Memory safety

Buffer overruns, format strings, integer overflows and use after free, in C and C++.

Start lesson

0 of 2 completed

Reviews are marked on
CWE-787Out-of-bounds writeCWE-122Heap-based buffer overflowCWE-134Use of externally-controlled format stringCWE-190Integer overflow or wraparoundCWE-191Integer underflow (wrap or wraparound)CWE-416Use after free
  1. 1
    Memory errors in C and C++

    C and C++ let a program write past the end of the space set aside for some data. The lesson shows how memory errors happen and the checks that prevent them.

    Open the lesson

    Listen to an AI summary of Memory errors in C and C++

    0:00 / 0:33
  2. 2
    Use after free

    Use after free is a weakness in C and C++ code, where the code goes on using memory after handing the memory back.

    Open the lesson

    Listen to an AI summary of Use after free

    0:00 / 0:32