Buffer Overflows for Beginners (Whitepaper)

Not for begginers in C++, but as an example of how to produce/avoid vulnerable code...
https://www.milw0rm.com/papers/123

Urs