|
Using different views java-programs for static analysis
E. A. Karpulevitch Institute for System Programming of the RAS
Abstract:
Static analysis of the source code used for the automated detection of software defects. Particularly noticeable benefits of static analysis in the development of large projects, consisting of hundreds of thousands of lines of code, because this amount of code is almost impossible to check manually.
Static analyzer of the compiler in contrast, not so much limited in time. Because of this, you can implement more complex and accurate algorithms that give more truth, and less false positives than the compiler's analysis algorithms. At the heart of any algorithm is an internal representation of the program code. The article discusses the various options for the internal representation of programs and software bug detectors that work on these ideas. Analysis of the internal representation of an abstract syntax tree (AST) allows you to quickly detect simple errors, such as a dangerous type conversions. By using abstract syntax tree is convenient to look for errors associated with re-use of code. An analysis of the control flow graph (CFG) allows you to find a more sophisticated error detection which requires passage by the program code. Instead pass code analysis is executed using the CFG bypass. Through analysis of the CFG can detect defects such as, for example, a resource leak, double release of the resource, buffer overflow. There are also other internal representations, which is convenient to carry out certain tests classes. The article, by way of example, the principles of operation described SVACE analyzer several detectors corresponding internal representations.
Keywords:
static analysis, java, FindBugs, SVACE.
Citation:
E. A. Karpulevitch, “Using different views java-programs for static analysis”, Proceedings of ISP RAS, 27:6 (2015), 151–158
Linking options:
https://www.mathnet.ru/eng/tisp190 https://www.mathnet.ru/eng/tisp/v27/i6/p151
|
Statistics & downloads: |
Abstract page: | 180 | Full-text PDF : | 81 | References: | 33 |
|