Research and System Implementation for Pointer Detection in Embedded C Program

Author
YuanZhu
Advisor
ZhouKuanJiu
School
Dalian University of Technology
Major
Software Engineering
Classification
TP368.1 Microprocessor
Degree
Master's thesis
Year
2012
Downloads
66
Citations
0

Request the full text

Abstract

Embedded system technology, which is widely applied in many fields, is a hot research area in computer science. The complexity of the pointer itself, coupled with the C language specification not imposing too many restrictions on usage of pointer, make the pointer misuse difficult to avoid, and even lead to serious security risks. In addition, the embedded program development depends on the cross-compiler environment, resulting in the development and testing more difficult. Therefore, the research on defect detection and reliability of the C program pointer has a great significance to ensure the security and stability of the embedded program.Defect detection technology of program is usually divided into two kinds, one is run-time detection method, namely dynamic detection, and the other one does not depend on the program’s running, known as static detection. Both the methods have their advantages, static detection without demands on the compiling and running of the code, perform higher efficiency and can be designed easier, so it is more adapted to the defect inspection of the embedded program in the mode of cross-platform development. The paper proposed the idea of defect inspection based on the model transformation of the source code and defect mode matching, after researching on the static detection theory at home and abroad. Its core idea is that, transform the source code into the XML mapping model, which is complete expression of the source semantic and has a well-structured query capabilities, and build the defect model with XQuery, then drive the pattern matching between the two kinds of models to inspect defect. To adapt to the relevant requirements of the different detection object or environment, this paper proposed the method to build defects knowledge base, so that the system can perform different detection strategies through flexible configuration. In addition, the defects knowledge base makes the system easier to develop and maintain, while greatly enhancing the scalability.Through a lot of testing and results analysis, we verified that the detection system for the pointer safety proposed in this paper has the correctness and practicality. The main work of this research is based on the major incubator program of the National Natural Science Foundation (Space Embedded Software Credibility Measurement Method and System,91018003), and thanks for the Fund Committee’s support on the work of project team.

Table of contents

Summary 4-5 Abstract 5-8 1 Introduction 8-13 1.1 Background and Significance 8-11 1.1.1 embedded systems and their security 8-10 1.1.2 embedded software development environment 10 1.1.3 C program pointer safety testing significance 10-11 1.2 research 11-12 1.3 organizational Structure paper 12-13 Summary 2 Software detection 13 -23 2.1 Overview 13 2.2 embedded C Programming major security flaw 13-16 2.2.1 memory access error 13-14 2.2.2 release pointer error 14-15 2.2.3 abnormal control 15 2.2.4 stack overflow 15-16 2.3 static detection technology 16-19 2.4 static and dynamic testing to detect contrast 19-20 2.5 static detection tools 20-22 2.6 Summary design method 22-23 3 systems and technology research 23-41 3.1 system design flow 23-24 3.2 pointer safety information Extraction 24-27 3.2.1 static security information extraction 24-25 3.2.2 build an abstract syntax tree 25-27 <br / > representation 3.3 security Information research 27-40 3.3.1 resolves complex type pointer 27-30 3.3.2 pointer alias analysis based on control flow 30-33 3.3.3 C program mapping model design 33-38 3.3.4 method pointer defect description 38-40 3.4 Summary achieve 40-41 4 code detection system 41-54 4.1 overall system architecture design 41-43 4.2 code analysis module 43-44 4.2.1 optimization module 43-44 4.2.2 semantic analysis module 44 4.3 test execution engine 44-52 4.3.1 program configuration module 44-46 4.3.2 test execution engine 46-50 4.3.3 defect Knowledge 50 - 52 4.3.4 defect positioning module 52 4.3.5 results reporting module 52 4.4 Summary 52-54 5 system verification 54-61 5.1 system to perform verification 54-58 5.1.1 operating system environment 54 5.1.2 system implementation process validation 54-58 5.2 system test results to verify 58-60 5.2.1 test 58-59 5.2.2 experimental data and results analysis 59-60 5.3 Summary 60-61 conclusion 61-63 References 63-66 <br / > Thanks 66-67

Related dissertations

  1. Design and Implementation of Trojan Detection System Based on Network Transmission Content
    WangYanYan ·Northeastern University ·2011 ·Master's thesis
  2. The Research and Implementation of Distributed Intrusion Detection System Based on Libnids
    XuPingJun ·Central South University ·2012 ·Master's thesis
  3. Researches on Non-exact Deep Packet Inspection
    WangHaiQiang ·Harbin Institute of Technology ·2013 ·Master's thesis
  4. The Research of Multi-pattern Matching Algorithms Based on Bit-split Method
  5. Research on Structured Information Extraction Based on Pattern Matching
    YangChunLei ·Hefei University of Technology ·2013 ·Master's thesis
  6. Pattern Matching with Variable Wildcards
    LiuYingLing ·Hefei University of Technology ·2014 ·Doctoral dissertation
  7. Approximate String Matching under Different Models
    ZhaoHua ·Huazhong University of Science and Technology ·2013 ·Doctoral dissertation
  8. Improvement and Implementation of Iris Recognition Algorithm
  9. The Research on Time Series Analysis Techniques
    VO THI THANH VAN ·Hunan University ·2013 ·Doctoral dissertation
  10. An Empirical Study on Quantitative Investment Strategies Based on Data Mining
    LiHuiLan ·Zhejiang University ·2014 ·Master's thesis
  11. Design and Implementation of Mobile Internet Content Security Audit System
    JinZuoLei ·Beijing Jiaotong University ·2014 ·Master's thesis
  12. Android Application Detection Research and Implementation Based on Software Security Policy
    LiuWeiWen ·Central South University ·2013 ·Master's thesis
  13. Analysis and Research of Android Malicious Application Behavior
    ZhaoXing ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Security Research of Intelligent Terminal based on Android Platform
    WangHuaBin ·Beijing Jiaotong University ·2014 ·Master's thesis
  15. Hybrid Carrier Communication System Resistance against Multi-path Fading and Narrowband Interference
    LiTao ·Harbin Institute of Technology ·2012 ·Master's thesis
  16. Research on Signal Processing Technology for Represent Polymer Compounding State
    HanZuo ·University of North ·2014 ·Master's thesis
  17. Research and Design of FPGA-based High Performance Pattern Matching Engines
  18. Research on Multi-pattern Matching Algorithms Based on Regular Expressions and Hardware Implementation
  19. The Design and Implementation of Network-Based Intrusion Detection System Based on Libnids
    ChenGang ·Hunan University ·2010 ·Master's thesis
  20. The Research of String Matching Algorithm in Intrusion Detection System