Materials
Software Security
This free book by Matthias Payer provides a nice into to Software Security. You can find the book here.
Program Analysis
Books
Dynamic Program Analysis
Fuzzing book provides a nice introduction to fuzzing. You can find the site here
Static Program Analysis
SPA book by Anders Møller provides a precise and slightly informal treatment of various static program analysis concepts. You can find the book here.