View Full Version : Buffer overflow security holes?
Sep 16, 2008, 12:48 AM
I'm not a programmer but I'm wondering why we still have security holes in various products due to buffer overflow. I would have thought that there would be linting tools that could check all of a program's interfaces and flag any that don't handle oversized input properly.
Is the problem that companies don't check, or that such tools don't exist, or some other reason?
Just curious - Greg
Sep 16, 2008, 01:56 AM
It's a lot more complicated than you think. There's no tools out there that will automatically find every possible buffer overflow in a particular code base. It can happen in a lot of really subtle ways.
Also, I'm not aware of any tools that do any sort of checking of known causes for OSX. There is a feature in Leopard however that lets you test your own program for buffer overflow. They're called "stack canaries".
And finally, companies do check for them, but it's harder to be proactive in searching for them one by one among millions of lines of code. It's more typical for such holes to be fixed only when they've been discovered by outsiders and perhaps exploited. It's just a simple lack of man-hours most of the time.
Sep 16, 2008, 11:51 PM