Research on Key Technologies of Improving the Accuracy of Static Defect Detecting

Author
XiaoQing
Advisor
ChenJunLiang
School
Beijing University of Posts and Telecommunications
Major
Computer Science and Technology
Classification
TP311.53 Software Maintenance
Degree
Doctoral dissertation
Year
2012
Downloads
169
Citations
0

Request the full text

Abstract

Software code defects are the main cause of the problem of software failures and vulnerabilities. Software defect detection methodology can be divided into dynamic and static techniques. Static techniques need not execute the software, which find defects by static analysis techniques. From the perspective of computability theory, static analysis is a computationally undecidable problem. Improving detection accuracy is the core issue of static defect detection, which includes two aspects: to reduce false positives and reduce false negative. A large number of false positives will make people lose confidence in the analysis tool. False negative will cause the program to have the illusion of a higher quality.This paper is sponsored by the National High-Tech Research and Development Plan of China under Grant2009AA012404,2007AA010302and2006AA01Z184. Its core work is to improve the accuracy of static defect detection from the perspective of the abstract domain design, path-sensitive analysis and context-sensitive analysis. Paper’s main contributions include:(1) How to better approximate and calculate the values of variables is the key to improve the accuracy of static analysis. Based on abstract interpretation, this paper proposes an abstract representation and computation method to get the variable values, which considers the relationship between variables. Firstly, in order to accurately represent the union of two separate intervals, it extends the classical single-interval abstract domain to the interval set abstract domain; secondly, in order to deal with the relationship between variables introduced by the assignment, the abstract domain of symbolic expressions is proposed, which can be combined with other abstract methods and improves their abstract accuracy. Finally, this paper proposes a uniform algorithm to calculate the abstract value of the variable, which does not depend on the specific abstract domain.(2) The defect detection based on finite state machine can be turned into a traditional data flow problem. There are three typical solution of data flow problem: IDEAL solution, MOP solution, MFP solution. Traditional iterative approaches to seek MFP solution are flow-sensitive but path-insensitive. This paper presents a new path-sensitive algorithm for static defect detecting running in polynomial time. In this method, property state conditions are represented by abstract domain of variables, and infeasible paths can be identified when some variable’s abstract value range is empty. This method avoids the combination explosion of full path analysis by merging the conditions of identical property state at join points in the CFG (control flow graph). Practical test results show that this method can reduce false positive.(3) As to the defect detection based on finite state machine, the interprocedural analysis has its own characteristics: it only concerns about whether the state of the defect state machine instances is changed. This paper presents a global defect detection method based on function summary: Firstly, it defines the function summary for defect detection, which includes precondition information collection, side effect information collection and feature information collection. Function summary can be considered as the abstract of actual function semantics. Precondition information collection generation can be dealed with as a reverse data flow problems, the generation of side effect information collection and feature information collection can be dealed with as two forward data flow problems. Secondly, in order to achieve context-sensitive analysis, this paper introduces the concept of summary conditions. Summary conditions are represented by the abstract values of variables, which define the context conditions to apply the function summary. Finally, based on function summary, a global iterative detect detection algorithm is proposed. Experiments show that proposed method can reduce false positives and false negatives.To sum up, in this dissertation, several key problems of improving the accuracy of static defect detecting have been studied and some contributions have been achieved. These key tehnologies have been implemented in a software defect detecting tool-DTS (Defect Testing System). Experients show that they have a bright future for industry applications.

Table of contents

Summary 6-8 ABSTRACT 8-12 Chapter 1 Introduction 12-24 1.1 Background and Significance 12 - 21 1.1.1 reason for 12-13 1.1.2 related technologies and the status 13-20 1.1.3 research background 20 the main contribution of the paper -21 1.2 21-22 1.3 content and structure of the paper 22-24 Chapter 2, based on abstract interpretation of defect detection 24-45 2.1 grid with fixed point theory 24-31 2.1.1 grid 24-28 2.1.2 fixed point 28-31 2.2 abstract interpretation theory 31-41 2.2.1 Galois connection 31-35 2.2.2 Widening / Narrowing operator 35-37 2.2.3 abstract interpretation of semantic hierarchy 37-41 2.3 static defect detection 41-43 2.3.1 defects mode 41 2.3.2 abstract interpretation based static defect detection 41-43 2.4 Summary 43-45 defects for Chapter 3 detection of abstract domains 45-65 3.1 classic single interval abstract 45-49 3.1.1 single interval abstract representation 45-47 3.1 .2 single abstract operation interval 47-49 3.2 interval set abstract 49-53 3.2.1 interval set abstract representation 50-51 3.2.2 interval set of abstract operations 51-53 3.3 abstract symbolic expressions 53-57 relationship between variables 3.3.1 classification 53-55 3.3.2 symbolic expressions abstract representation nbsp 55-56 3.3.3 symbolic expressions of abstract operations ; 56-57 3.4 program variables abstract value calculation algorithm 57-60 3.5 algorithm experiments and analysis 60-63 3.6 Summary 63-65 path within Chapter 4 of the sensitive process of defect detection 65-80 4.1 path is not sensitive defect detection algorithm 65-71 4.1.1 defect mode state machine 65-66 4.1. 2 Data flow analysis framework 66-69 4.1.3 defect detection nbsp traditional data stream based ; 69-71 4.2 path sensitive defect detection algorithm 71-76 4.2.1 a false case 71-72 4.2.2 path information abstraction 72-73 4.2.3 detection algorithm 73 -76 4.3 algorithm experiments and analysis 76-79 4.4 Summary 79-80 Chapter 5, based on inter- process defect detection function summary 80-94 5.1 function summary said 80-85 5.1.1 front constraint information 80-82 5.1.2 rear side effects information 82-83 5.1.3 status feature information 83 5.1.4 Summary function defined 83-85 5.2 Summary function generates 85 -89 5.2.1 front constraint information to calculate 85-86 5.2.2 rear side effects information to calculate 86 5.2.3 status feature information calculated 86-87 5.2.4 function Abstract between 87-89 5.3 process static defect detection algorithm 89-90 5.4 algorithm experiment and analysis 90-92 5.5 Summary 92-94 Chapter 6 DTS: an abstract interpretation based static defect detection tools 94-107 6.1 DTS Introduction 94 6.2 DTS achieve 94-101 6.2.1 input section 94-96 6.2.2 basic processing section 96-99 6.2.3 improve the precision part 99-100 6.2.4 automatic detection part 100-101 6.2.5 The results confirm part 101 6.3 DTS complexity analysis 101-104 6.4 experiments and analysis 104-106 6.5 Summary 106-107 Chapter 7 Conclusion 107-110 7.1 paper summarizes 107-108 7.2 further research work and problems thinking 108-110 <br / > References 110-120 Appendix Acknowledgements 120-121 Appendix pursuing a doctorate research during 121-122

Related dissertations

  1. Research on Software Testing Technology Based on Defect Pattern
  2. Research and Application of File Simplification Technology in Static Analysis
  3. A Static Testing Method for Detecting Null Pointer Fault of Array
  4. A Method Based on Flow Analysis in Source Code Testing Tools
    MengZhaoGuo ·Jilin University ·2012 ·Master's thesis
  5. Domain Sensitive Function Side Effects Research and Application
  6. Research and Implementation of Complex Constraint Information Based on DTS
  7. An ESP Static Lock Analysis Tool Based on Java
    LiuHao ·Shanghai Jiaotong University ·2013 ·Master's thesis
  8. Software Source Code Similarity Analysis Technology and Application System
  9. Research of Equipment Software Static Testing Base on Testbed and Polyspace
    YinJin ·Harbin Engineering University ·2012 ·Master's thesis
  10. Research on Points-to Analysis for Java
    LiZuo ·Nanjing University ·2012 ·Doctoral dissertation
  11. Research on Application for Mobile Process Calculi and Their Static Analysis Techniques to Systems Biology
    ZhangHong ·Jilin University ·2008 ·Doctoral dissertation
  12. Program Slicing Techniques and Its Application in Object-Oriented Software Metrics and Software Test
    LiBiXin ·Nanjing University ·2000 ·Doctoral dissertation
  13. Constraint Based Prolog Semantics and Its Applications in the Testing, Analysis and Verification of Prolog Programs
  14. Sound Floating-point and Non-convex Static Analysis Using Interval Linear Abstract Domains
  15. Research on Analysis and Verification Techniques for Heap-Manipulating Programs
  16. Research on Double Exposure Off-axis Digital Holographic Detecting Technology
  17. The Inner Wall State Monitoring Method for the Industrial Main Pipe
    ZhouShan ·Yanshan University ·2013 ·Master's thesis
  18. Design and Development of a High-speed Heavy-load Palletizing Robot
    CaoJiaZuo ·Tianjin University ·2012 ·Master's thesis
  19. The Design and Analysis of Octahedral Module Deployable Mast
    LiCheng ·Harbin Engineering University ·2013 ·Master's thesis
  20. Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
    WangZhiHong ·Anhui University of Engineering ·2013 ·Master's thesis