Did you know that most Linux distributions (as well as macOS) come with a command-line tool that can help you spot memory safety errors if your C programs? It's called the C Analysis Tool, or CAT for short. Run it on any C program and it will print back any lines of your code that it thinks might have a memory safety error. This is useful because a huge number of AppSec-related security vulnerabilities come from unsafe use of memory in C. I've been using it for years and it's never let anything slip by.
To use the C Analysis Tool, simply run the command: