Page 1 of 1

C Analysis Tool

Posted: Sat Jul 06, 2024 11:05 am
by FerrisTheCrab
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:

Code: Select all

$ cat example.c