A Static Testing Method for Detecting Null Pointer Fault of Array
- Author
- YangZuo
- Advisor
- GongYunZhan
- School
- Beijing University of Posts and Telecommunications
- Major
- Computer Science and Technology
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 29
- Citations
- 0
- Software Testing
- Static analysis
- Interval Analysis
- interprocedural abstract
- fault state machines
- NPD ARRAY
Abstract
In recent years, the Null Pointer Dereference fault(NPD) has continuely caused software security issues and it is a disaster to software company and software users,so a lot of domestic and foreign reserchers put themselves into the field that study how to detect this kind of fault more effectively. Null Pointor Dereference of ARRAY(NPD_ARRAY) is one kind of NPD which is also common in projects. Owing to its concealment, it’s hard to detect this type of problem using dynamic testing method which is complicated and time-consuming.This thesis introduces a kind of static analysis method for detecting NPD_ARRAY based on Abstract Interpretation and Symbolic execution.The method is that firstly we sum up the error as a model after classifying NPD_ARRAY and describe the model using defect model state machine, then we decide whether or not to create the instance of NPD_ARRAY depending on the condition of creating defect model state machine and put the instance on the entry node of control flow graph, and finally we judge whether the null pointer deference is wrong in terms of the results of analysis with data flow under the support of interval calculation and interprocedural abstract.This method has been applied in DTSJava, and it has been proved efficient for detecting NPD_ARRAY by datas from testing projects using the different versions of DTSJava and datas from testing projects using Findbugs and Klockwork which are also developed for decting NPD together with DTS.
Table of contents
Summary 4-5
ABSTRACT 5-9
first chapter . Nbsp; 9-14
1.1 Background 9-11
1.2 research 11-12
1.3 content and structure of the paper 12-14
meaning of Chapter II null pointer array to detect faults . 14 -17
2.1 nULL pointer dereference fault dangers 14-15
2.2 null pointer array faults proportion 15
2.3 current Inspection of test tools 15-17
the third chapter describes an array of null pointer fault . 17-21
3.1 null pointer array definition of failure 17
3.2 null pointer array classification of failure . 17-21
3.2.1 null pointer array fault function within 17-18
3.2.2 null pointer array fault function between . 18-21 fourth chapter
null pointer array fault detection model . 21-26
4.1 null pointer array failure mode state machine defined 21-24
4.2 null pointer array failure mode state machine description 24-26
Chapter null pointer fault detection array implementations 26-46
5.1 testing process 26 -. interval 29
5.2 array represents 29-30
5.3 null pointer array within the function fault detection detection function between 30-33
5.4 null pointer array fault . 33-46
5.4.1 user- defined functions generate summary . 35-36
5.4.2 Summary of system library functions to generate 36-39
5.4.3 Summary of transfer and use . 39-41
5.4.4 detection algorithm . 41-46
Chapter VI of the experimental results and analysis nbsp.; 46-50
6.1 experimental environment 46
6.2 detection index 46-47
6.3 experimental data and analysis 47-50 <br / > Chapter VII summary and Outlook 50-52
7.1 paper summarizes 50
7.2 Prospects 50-52
Appendix: null pointer array fault the state machine description file 52-55
References 55-57
Thanks published 57-58
master's degree during the academic catalog 58
Related dissertations
- Research and Application of File Simplification Technology in Static Analysis
- Domain Sensitive Function Side Effects Research and Application
- Research of Equipment Software Static Testing Base on Testbed and Polyspace
- Research on Key Technologies of Improving the Accuracy of Static Defect Detecting
- Research on Software Testing Technology Based on Defect Pattern
- Design and Development of a High-speed Heavy-load Palletizing Robot
- The Design and Analysis of Octahedral Module Deployable Mast
- Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
- Compiler-directed Static Analysis and Code Transformation
- Static Security Detection of C Applications
- And the realization of software testing reuse management subsystem design
- Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
- Research on software testing technology based on complex network theory
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
- Research of Software Testing Method Based on Cloud Computing
- Research on Path-oriented Test Data Generation
- Research on Process Improvement in Y Co. Based on CMM
- Method Research and System Development of Software Automatic Testing
- Research and implementation of TaaS test management services