C Analysis Tool

Post Reply
FerrisTheCrab
Posts: 20
Joined: Fri Jun 28, 2024 4:50 pm

C Analysis Tool

Post 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
Post Reply