3 ms·
I haven't. I'd like links, though. If I can see with my eyes that code will never be executed, I'd like to know what's wrong with the state of current static an
by pessimizer 13y ago
I haven't. I'd like links, though. If I can see with my eyes that code will never be executed, I'd like to know what's wrong with the state of current static analysis.
edit: http://blog.veracode.com/2014/02/do-not-pass-qa-do-not-goto-fail-catching-subtle-bugs-in-the-act/ http://blog.veracode.com/2014/02/do-not-pass-qa-do-not-goto-...
Veracode does static analysis of the binary, and says that it would be thwarted because it wouldn't know that some functions were meant to be called. Static code analysis would tell you that it was impossible for some of the code to be run.
edit 2:(the second comment on the vericode blog)
caf | February 24, 2014 11:05 pm
In the Evil Unit Tests part you can use code coverage tools to at least verify that your unit tests exercise all code paths. It won’t catch every bug, but it would have caught this one.
- tptacek 13y agoUnit test coverage isn't static analysis. It's practically the opposite of static analysis.
- pessimizer 13y agoI'm not talking about unit test coverage:) I read the comment too quickly. I'm talking about tools like http://oclint.org/ http://oclint.org/ and http://clang-analyzer.llvm.org/ http://clang-analyzer.llvm.org/ If they work anything like similar tools in other languages, they would have found this bug trivially.
- tptacek 13y agoYes, along with hundreds of other issues that would have had no security impact.