Research and Implementation of a Contract-Based Safety Analysis Method
- Author
- YangXiaoQi
- Advisor
- LiuJian
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.5 Software Engineering
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 20
- Citations
- 2
Abstract
A contract-based safety analysis method for detecting C and C++ safety holes is proposed and implemented in this paper. With bottom-up analysis, the process of interprocedural analysis is transformed into the intraprocedural analysis. A format for descripting safety rules is designed so that safety rules can be expanded by users. By associating variables and functions with contracts to record pre and post conditions, and updating the contracts according to the rules constructed, safety checking can be done automatically during the program analysis. The method can be used to detect safety holes, such as illegal pointer references, the use of illegal statuses of function arguments or global variables during a function call, memory leaks, and other resource leaks, at a low cost and with high flexibility.
Table of contents
Abstract 3-4
ABSTRACT 4-7
The first chapter 7-11
1.1 Background 7-8
1.2 topics solutions 8-10
1.3 This major work 10-11
Chapter bottom-up analysis of the contract 11-15
2.1 Bottom-up analysis 11
2.2 Variables and Functions Contract Contract 11-12
2.3 contract information 12-15
Chapter III contract-based safety analysis method is designed 15-21
3.1 Security Decision rules 15-16
3.2 Contract update rules 16-18
3.3 Contract-based security analysis algorithm 18-21
Chapter IV contract-based safety analysis method of achieving 21-53
4.1 application framework 21-22
4.2 configuration file format definition module 22-26
4.2.1 configuration file format definition 23-24
4.2.2 system default contract information 24-26
4.3 contract information module 26-28
4.3.1 contract information defined 26
4.3.2 Contract information extraction 26-28
4.3.2.1 Expat introduction 26-27
4.3.2.2 extracted using Expat XML parser written contract information 27-28
4.4 postcondition save the state before and after the module 28-42
4.4.1 Status conditional expression 29
4.4.2 build state condition syntax tree 29-30
4.4.3 elimination of non-operator node 30-33
4.4.4 into disjunctive syntax tree 33-34
4.4.5 Extraction state two important collections 34-35
4.4.6 optimized state two important collections 35-38
4.4.7 Method optimization 38-40
4.4.8 Method of integration 40-41
4.4.9 Example 41-42
4.5 Compact structure definition module 42-44
4.5.1 Variable Contract data structure 43-44
4.5.2 Functions Compact data structure 44
4.6 Security determination to achieve 44-47
4.6.1 variable contract security determination 44-45
4.6.2 before the expiration of the safety variables determine 45-46
4.6.3 safety function call determines 46-47
4.7 update contract realization 47-53
4.7.1 Variable Contract update 47-51
4.7.1.1 sequential structure variable contracts update 47-49
4.7.1.2 branching structure variable contracts update 49-51
4.7.2 update function call contract 51
4.7.3 update function returns a contract 51-53
Chapter V Safety Case Analysis 53-55
Conclusion 55-57
Thanks 57-59
References 59-61
during the reading of the research 61-63
Appendix A configuration file format definition 63-65
Appendix B system default contract information 65-82
Appendix C granular security analysis algorithm 82-84
Appendix D for the safety analysis program P 84-85
Related dissertations
- Design and implementation of image encryption algorithm based on Chaos
- TCM Syndrome Differentiation and Treatment on AIDS Blood Toxicity of Clinical Efficacy and Safety Analysis
- Research on Distribution Network Dynamic and Smart Connection System
- Application of the Passive Safety System to Fusion-fission Hybrid Reactor and Safety Analysis
- Security Analysis of the Frame Structure in Expansion and Reconstruction Project
- Safety Analysis of Domestic Non-Bulk Carrier Carrying Solid Bulk Cargo
- Research on Fault Coverage Based Safety Analysis For Train Control System
- Research on Track Circuit System Safety Analysis and Safety Early-warning
- Dynamic Fault Tree Analysis for the IMA Core Processing System of Civil Aircraft
- Applicability Research and Application of the System Safety Analysis Code on Supercritical Water-cooled Reactors and Sodium-cooled Fast Reactors
- Research on Motion Control of a Robot for Aircraft Skin Inspection
- Aircraft System Safety Analysis Method Research Based on Model Checking
- Research on Color Image Encryption Algorithm Based on Chaotic System
- High-dimensional Chaotic System and its Application on Image Encryption
- Research and analysis of TBM tritium tritium safety system
- Simulation Analysis of Automobile Crash at the Rear End and Safety of Passengers
- A Study of Nonlinear Car-following Model Based on Safety Analysis of Mountainous Roads
- The Deformation Laws of Surrounding Rock of Maanziliang Tunnel and the Structural Safety Study of Initial Support
- Safety Analysis on Railway Exceptional Dimension Freight Transportation
- The Safety Analysis and Process Improvement on Electrical Arc Burnt Tail Pin