Lesson 1: A crash from one stray pointer · 9 min
Before you begin · The field crash · What went wrong
Learners sign in, so every finish and score is recorded. 7 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The field crash · What went wrong
Where things live · Where does it live? · Check
Safe habits · Predict · The overflow
Name the flaw · Leak or not? · Check
How a rule set helps · Read the finding
Static analysis in review · Practice
Taken from the course itself.
A pointer is kept and used after its memory was released. Which flaw is this?
Answer: Use after free. The pointer outlives the memory. That is use after free.
Lesson 1: A crash from one stray pointer
What does the example print?
Answer: 2. a[1] is the second value, which is 2.
Lesson 3: Pointers and arrays safely
Why does a leak slow a service over time?
Answer: Each request keeps memory that is never returned. Memory that is never released builds up until the system runs short.
Lesson 4: Common memory-safety flaws
A 16-byte buffer receives 40 bytes from a message.
Best response: Check the length and copy only what fits.
Weaker responses: Enlarge the buffer to 64 and hope; Trust the sender; Remove the check.
An article from the AhaSlides blog that uses this course.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.