Concurrency: Summations of Secure Coding in C and C++
A breezy guide to keeping file operations safe: validate paths, lock down permissions, and never let a privileged process wander into a user’s temp folder.
mutex is the hero of secure C/C++ concurrency, why goto is still secretly useful, and how to keep your locks short and your bugs shorter.
NULL right after free (and a few related memory‑management niceties) can save you from nasty use‑after‑free bugs, memory leaks, and the occasional midnight debugging panic.
strcat, strncat, strlcat, and friends—plus a quick table to keep your concatenations from turning into catastrophes.
'\0'—otherwise you’re inviting buffer overflows, stray reads, and a lot of debugging grief.