The Design and Implementation of Data Flow Analyzer in C/C++ Program Safety Checker
- Author
- YuXinDai
- Advisor
- LiuJian
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 65
- Citations
- 1
Abstract
A data flow analyzer which is used to collect data flow information for a C/C++ program static safety checker is designed and implemented in this thesis.Firstly, basic theories in data flow analysis and the conventional iterative data flow analysis method is studied, and a control flow path-based data flow analysis method is presented according to the actual needs of the C/C++ program static safety checker. Secondly, based on this method a data flow analyzer is designed and implemented, which searches out the control flow paths in control flow graph, and then parses the abstract syntax tree to calculate data flow information along each path. The overall workflow, control flow path searching and data flow information calculation in the analyzer are discussed detailedly. Finally, integer value analysis of which the result is used to check array bounds is discussed. Experimental results illustrate that this method is effective.
Table of contents
Summary 3-4
Abstract 4-7
first chapter 7-13
1.1 Background 7-9 < br /> 1.1.1 program analysis and static checking 7-8
1.1.2 static security checks related work 8-9
the 1.1.3 data flow analysis work 9
1.2 C / C program security check tool Overview 9-11
1.3 This work and content organization 11-13
1.3.1 of this article 11-12
1.3.2 of this article content organization 12-13
Chapter II related tools and data flow analysis foundation 13-21
2.1 related tools and technologies 13-17
2.1.1 symbol table the 2.1.2 the ANTLR and abstract syntax tree 13
13-15 <br / > 2.1.3 Control Flow Graph the analysis 15-16
2.1.4 function dependent 16-17
2.2 data flow analysis techniques 17-19 <br / > 2.2.1 Data Flow Analysis Overview the 17-18 the 2.2.2 data stream
equation 18
2.2.3 iterative data flow analysis method 18-19 < br /> 2.3 Chapter Summary 19-21
Chapter Design and Implementation of the data flow analyzer 21-43
3.1 overall data flow analysis program 21 -24
3.1.1 control flow path 21-22
3.1.2 data flow analysis method based on the control flow path 22-23
3.1.3 this article data flow analysis program 23-24
3.2 overall design of the data flow analyzer 24-25
3.3 Path Management Module Design and Implementation 25-33
3.3.1 path management module in the data structure design 25-28
3.3.2 drive control flow path search algorithm 28-33
3.4 data flow analysis Module Design and Implementation 33-37
3.4.1 DataFlowAnalyzer class design the 33-36
3.4.2 Data flow analysis-driven algorithm 36-37 < br /> 3.5 AST traversal module design and realization the 37-41
3.5.1 abstract syntax tree traversal Design 37-40
3.5.2 AST traversal computing data flow information 40-41
3.6 data flow analyzer extended 41-42
3.7 Chapter Summary 42-43
Chapter integer variable value analysis of the design and realization of 43-57
4.1 alias analysis Overview 43-44
4.2 integer variable value analysis Overview 44 <br / > 4.3 integer variable value information storage structure design the 44-46
4.4 integer variable value analysis to achieve 46-56
4.4.1 global integer variable value information collection 46-47
4.4.2 integer variable value information dissemination to get 47-48
4.4.3 symbol entries 48-50
4.4 the .4 expression evaluated the 50-52
4.4.5 integer variable value information updated 52-53
4.4.6 Inter-process integer variable value analysis nbsp guess integer variable value; 53-55
4.4.7 55-56
4.5 integer variable value information array bounds checking 56
4.6 Chapter Summary 56-57
Chapter instance analysis 57-61
Chapter VI Conclusion 61-63
Acknowledgements 63-65 the
References 65-66
Related dissertations
- Analysis of Hardware Fault Propagation in Programs and Research on Fault-tolerance Techniques
- Research on Technologies of User Access Behavior Check Based on Web Data Stream Analysis
- Research on Detecting Buffer Overflow in Binary Code
- The Research and Implementation of Path Sensitive Methods Summary in DTS
- Research on Data Type Reconstruction in Decompilation
- An Integration of Several Data Flow Analysis Techniques for Program Verification
- Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
- Research on Automatic Data and Computation Partition and Optimization in Parallelizing Compilation
- Research on Automatic Code Generation and Optimization in Parallelizing Compiler
- Exception Propagation Analysis and Its Applications
- Research on Dependence Analysis and Software Testing
- Secure Information Flow Based on Syntax Analysis
- Automatic path-oriented test data generation method
- Research on Static Analysis Methods to Detect Buffer Overflows Vulnerability
- The Research of Partitioned Symbolic Execution Model and Its Environment Interaction Problem
- Case Studies for Semantic Aware Statistical Machine Learning Applications in Code Security Problems
- Research on Key Technologies in Data Stream Analysis
- The Design and Implementation of a Static Analysis System in Source Code
- Study and Implement on Basic Data Type Analysis in Static Binary Translation
- Based on binary executable code coverage testing technology research