Automated Memory Corruption Detection through Analysis of Static Variables and Dynamic Memory Usage

被引:2
|
作者
Park, Jihyun [1 ]
Choi, Byoungju [1 ]
Kim, Yeonhee [1 ]
机构
[1] Ewha Womans Univ, Dept Comp Sci & Engn, Seoul 03760, South Korea
关键词
memory corruption detection; memory fault detection; real-time fault detection; software debugging; fault detection;
D O I
10.3390/electronics10172127
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Various methods for memory fault detection have been developed through continuous study. However, many memory defects remain that are difficult to resolve. Memory corruption is one such defect, and can cause system crashes, making debugging important. However, the locations of the system crash and the actual source of the memory corruption often differ, which makes it difficult to solve these defects using the existing methods. In this paper, we propose a method that detects memory defects in which the location causing the defect is different from the actual location, providing useful information for debugging. This study presents a method for the real-time detection of memory defects in software based on data obtained through static and dynamic analysis. The data we used for memory defect analysis were (1) information of static global variables (data, address, size) derived through the analysis of executable binary files, and (2) dynamic memory usage information obtained by tracking memory-related functions that are called during the real-time execution of the process. We implemented the proposed method as a tool and applied it to applications running on the Linux. The results indicate the defect-detection efficacy of our tool for this application. Our method accurately detects defects with different cause and detected-fault locations, and also requires a very low overhead for fault detection.
引用
收藏
页数:24
相关论文
共 50 条
  • [1] Memory Corruption Detecting Method Using Static Variables and Dynamic Memory Usage
    Park, Jihyun
    Park, Changsun
    Choi, Byoungju
    Chang, Gihun
    2018 IEEE/ACM 13TH INTERNATIONAL WORKSHOP ON AUTOMATION OF SOFTWARE TEST (AST), 2018, : 46 - 52
  • [2] Source Code Analysis for Static Prediction of Dynamic Memory Usage
    Kim, Sangwho
    Ryou, Jaecheol
    2019 INTERNATIONAL CONFERENCE ON PLATFORM TECHNOLOGY AND SERVICE (PLATCON), 2019, : 46 - 49
  • [3] MEMORY MANAGEMENT AT THE USING OF STATIC AND DYNAMIC VARIABLES
    Nagyova, Ingrid
    INFORMATION AND COMMUNICATION TECHNOLOGY IN EDUCATION, 2010, 2010, : 127 - 130
  • [4] Static detection of dynamic memory errors
    Evans, D
    ACM SIGPLAN NOTICES, 1996, 31 (05) : 44 - 53
  • [5] Hybrid Analysis: Static & Dynamic Memory Reference Analysis
    Silvius Rus
    Lawrence Rauchwerger
    Jay Hoeflinger
    International Journal of Parallel Programming, 2003, 31 : 251 - 283
  • [6] Hybrid analysis: Static & dynamic memory reference analysis
    Rus, S
    Rauchwerger, L
    Hoeflinger, J
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2003, 31 (04) : 251 - 283
  • [7] Automatic Generation of ROP Through Static Instructions Assignment and Dynamic Memory Analysis
    Huang, Ning
    Huang, Shuguang
    Chang, Chao
    INTERNATIONAL JOURNAL OF DIGITAL CRIME AND FORENSICS, 2021, 13 (02) : 57 - 76
  • [8] MemSherlock: An Automated Debugger for Unknown Memory Corruption Vulnerabilities
    Sezer, Emre C.
    Ning, Peng
    Kil, Chongkyung
    Xu, Jun
    CCS'07: PROCEEDINGS OF THE 14TH ACM CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, 2007, : 562 - +
  • [9] Towards Automated Detection of Higher-Order Memory Corruption Vulnerabilities in Embedded Devices
    Yu, Lei
    Li, Linyu
    Wang, Haoyu
    Wang, Xiaoyu
    He, Houhua
    Gong, Xiaorui
    PROCEEDINGS OF THE 2021 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE 2021), 2021, : 1707 - 1710
  • [10] A Static Analysis for Synthesizing Parametric Specifications of Dynamic Memory Consumption
    Braberman, Victor
    Garbervetsky, Diego
    Yovine, Sergio
    JOURNAL OF OBJECT TECHNOLOGY, 2006, 5 (05): : 31 - 58