3 ms·
> Have you ever worked with teams who use aggressive static analysis tools to detect and catch undefined behavior? Coverity is actually used on browser engine
by pcwalton 10y ago
> Have you ever worked with teams who use aggressive static analysis tools to detect and catch undefined behavior?
Coverity is actually used on browser engines, and it has not been able to stem the tide of exploitable security vulnerabilities. Sound static analysis is just too difficult on idiomatic C and C++: it's effectively impossible, as the language was just not designed for it.
- jjnoakes 10y agoI don't agree. I work with static analysis daily and idiomatic code is the easiest to analyze. If coverity isn't catching the bugs and they are undefined behavior bugs then coverity needs to be more aggressive. But it probably doesn't support things like ownership annotations, and it probably gives up strict checking in order to avoid false positives. The problem is developers. Developers are lazy. Most developers won't even turn on compiler warnings, never mind using the sanitizers. So tool makers create sub-par tools to cater to them. Fewer false warnings means more customers, even if it also means fewer security holes. It's why we use an in house tool and crank up the checks to 11.