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

Request the full text

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

  1. The Research and Implementation of Cross-Platform Technology on DTSC
  2. The Study and Construction of Java Front-end for Security Checker
  3. A Study On Improved JAVA Software Evolution Analysis Technique Based On Abstract Syntax Tree
    JiangZuo ·Nanjing University ·2013 ·Master's thesis
  4. The Design and Implementation of the Abstract Synatax Tree in Safety Verifying Tool
  5. Research on High Precision Log Parsing Techniques
    FanJing ·Shanghai Jiaotong University ·2013 ·Master's thesis
  6. Formal Verification of Security Protocols Implementation by Java
  7. Study of Characteristics of Traditional Courtyard Space on Modern Architecture Research Use
    LiuHuiZuo ·Wuhan University of Technology ·2012 ·Master's thesis
  8. A Modular Approach on Building Certified Software System
    GuoYu ·University of Science and Technology of China ·2007 ·Doctoral dissertation
  9. Certifying Compilation in an Infrastructure for Developing Trustable Software
    GeLin ·University of Science and Technology of China ·2007 ·Doctoral dissertation
  10. Research on Testing and Evaluating Theory of Reliability and Safety for High Dependability Software
  11. Certifying Concurrent Porgrams Using Transactional Memory
    LiLong ·University of Science and Technology of China ·2008 ·Doctoral dissertation
  12. A Pointer Logic for Safety Verification of Pointer Programs
  13. Research on Relationship and Transition between the Software Reliability and Safety
    FanLinBo ·Guizhou University ·2009 ·Doctoral dissertation
  14. From revolution -type model of democracy to the building type conversion
    DuanLian ·The Central Party School ·2011 ·Doctoral dissertation
  15. Research on the Reverse Engineering Based on Design Pattern
  16. The Design and Realization of JBFT
  17. Design and Implementation of an IDE for WSN Nodes
    ZuoXing ·Zhejiang University ·2008 ·Master's thesis
  18. Design and Implementation of Code Smell Detection Tool for Auto-refactoring
  19. Software Safety Assurance Framework and Safety Technology Application
  20. The Typological Study of Yunnan Traditional Settlement