Analysis and Check of Type Conversion and Control Flow Safety Vulnerability
- Author
- ZhaoWenJie
- Advisor
- LiuJian
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP309 Security and confidentiality
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 113
- Citations
- 1
Abstract
High efficiency and flexibility are the aims of the developers of C/C++ language. But some safeties are neglected more or less. Because of the programmer’s inability or carelessness, the safety of the software is extremely threatened. Type conversion and control flow safety vulnerabilities in C/C++ are studied in this paper. Feasible static detecting methods are given based on deep analysis of these safety vulnerabilities.For type conversion safety vulnerabilities, its commonness is summarized through the analysis of data type characteristic and the conversion of them. Syntax directed translation technique is used to describe the type conversion safety vulnerabilities formally. Finally, these vulnerabilities are detected with the use of foreign free software GASTA and the handle of the AST (Abstract Syntax Tree). The control flow relative safety vulnerabilities are handled similarly.
Table of contents
Abstract 3-4
ABSTRACT 4-6
first chapter 6-8
1.1 Background 6-7
1.2 papers 7-8
the
the second chapter XDCHECK static checking tools introduced 8-12
the the the
chapter C / C type conversion and control flow analysis of security vulnerabilities 12-30
the
3.1.GCC abstract syntax tree Introduction to 12-15
3.2 type conversion vulnerability analysis 15-22
3.2.1 C / C type conversion 15-18
3.2.2 type conversion vulnerability analysis 18-22
3.3 control flow vulnerability analysis 22-30
3.3.1 confuse operators vulnerability 22-24
3.3.2 vulnerabilities caused due to the order of evaluation of uncertainty 24-27
3.3.3 switch -case structure , the lack of default or break 27-30
the Chapter type conversion and control flow realization of the security vulnerability checks 30-46
the analytical tools GASTA About
4.1 GCC abstract syntax tree 30-32
4.2 type conversion vulnerability checks 32-36
4.3 control flow vulnerability checks 36-46
4.3.1 confuse operators vulnerability checks 36-41
4.3.2 due to the order of evaluation of the uncertainty caused by the vulnerability checks 41-44
4.3.3 switch -case structure in the absence of default or break the check 44-46
Chapter V Conclusion 46-48
Acknowledgements 48-50
the
References 50-52
Appendix A ordinary arithmetic conversion rules 52-54
Appendix B is a simple AST file 54-58
the
author read during research 58
Related dissertations
- The Research and Implementation of Cross-Platform Technology on DTSC
- The Study and Construction of Java Front-end for Security Checker
- A Study On Improved JAVA Software Evolution Analysis Technique Based On Abstract Syntax Tree
- The Design and Implementation of the Abstract Synatax Tree in Safety Verifying Tool
- Research on High Precision Log Parsing Techniques
- Formal Verification of Security Protocols Implementation by Java
- Study of Characteristics of Traditional Courtyard Space on Modern Architecture Research Use
- A Modular Approach on Building Certified Software System
- Certifying Compilation in an Infrastructure for Developing Trustable Software
- Research on Testing and Evaluating Theory of Reliability and Safety for High Dependability Software
- Certifying Concurrent Porgrams Using Transactional Memory
- A Pointer Logic for Safety Verification of Pointer Programs
- Research on Relationship and Transition between the Software Reliability and Safety
- From revolution -type model of democracy to the building type conversion
- Research on the Reverse Engineering Based on Design Pattern
- The Design and Realization of JBFT
- Design and Implementation of an IDE for WSN Nodes
- Design and Implementation of Code Smell Detection Tool for Auto-refactoring
- Software Safety Assurance Framework and Safety Technology Application
- The Typological Study of Yunnan Traditional Settlement