It's very easy to write insecure code in C. Here are some resources to help you get started with secure programming.

Resources Edit

The Secure Programming for Linux and UNIX HOWTO Edit

By David A. Wheeler. Very up-to-date.

Practical UNIX and Internet Security Edit

An O'Reilly Media book by Simson Garfinkel, Gene Spafford, and Alan Schwartz.

SANS : Top 25 Most Dangerous Software Errors Edit

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: