http://www.inulledmyself.com/2015/02/exploiting-memory-corruption-bugs-in.html
http://www.inulledmyself.com/2015/02/exploiting-memory-corruption-bugs-in_23.html
http://www.inulledmyself.com/2015/05/exploiting-memory-corruption-bugs-in.html
An excellent series of three blog posts on the said topic.