It's very easy to write insecure code in C. Here are some resources to help you get started with secure programming.
By David A. Wheeler. Very up-to-date.
An O'Reilly Media book by Simson Garfinkel, Gene Spafford, and Alan Schwartz.
A list of the most dangerous software errors.
Common Issues Edit
Buffer Overflows Edit
Buffer overflows happen when one writes beyond the edge of an allocated segment of memory:
- Wikipedia Article
- “Buffer Overflow Attacks and Their Countermeasures” - a Linux Journal article.
- “Buffer overflow attacks explained with beer” - Humorous video on YouTube.