As threatened ... Secure C and C++ Coding Standards https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=637 Sadly, this is for a $51 book. Govt agencies have produced similar guides which should be possible to find online. NASA had some years ago. Bet they still exist somewhere.