What C/C++ tools can check for buffer overflows?

MrValdez picture MrValdez · Oct 3, 2008 · Viewed 21.2k times · Source

I've been asked to maintain a large C++ codebase full of memory leaks. While poking around, I found out that we have a lot of buffer overflows that lead to the leaks (how it got this bad, I don't ever want to know).

I've decided to removing the buffer overflows first. To make my bug-hunting easier, what tools can be used to check for buffer overruns?

Answer

diciu picture diciu · Oct 3, 2008

On Linux I'd use Valgrind.