MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software
With the expansion of the scale and complexity of multimedia software, the detection of software defects has become a research hotspot. Because of the large scale of the existing software code, the efficiency and accuracy of the existing software defect detection algorithms are relatively low. We pr...
Main Authors: | , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2022-07-01
|
Series: | Entropy |
Subjects: | |
Online Access: | https://www.mdpi.com/1099-4300/24/7/947 |
_version_ | 1827597225409118208 |
---|---|
author | Ling Yuan Siyuan Zhou Peng Pan Zhenjiang Wang |
author_facet | Ling Yuan Siyuan Zhou Peng Pan Zhenjiang Wang |
author_sort | Ling Yuan |
collection | DOAJ |
description | With the expansion of the scale and complexity of multimedia software, the detection of software defects has become a research hotspot. Because of the large scale of the existing software code, the efficiency and accuracy of the existing software defect detection algorithms are relatively low. We propose an intelligent memory leak detection scheme MLD based on defect modes in software. Based on the analysis of existing memory leak defect modes, we summarize memory operation behaviors (allocation, release and transfer) and present a state machine model. We employ a fuzzy matching algorithm based on regular expression to determine the memory operation behaviors and then analyze the change in the state machine to assess the vulnerability in the source code. To improve the efficiency of detection and solve the problem of repeated detection at the function call point, we propose a function summary method for memory operation behaviors. The experimental results demonstrate that the method we proposed has high detection speed and accuracy. The algorithm we proposed can identify the defects of the software, reduce the risk of being attacked to ensure safe operation. |
first_indexed | 2024-03-09T03:27:14Z |
format | Article |
id | doaj.art-433f8e477de5486b878346a33ef08de9 |
institution | Directory Open Access Journal |
issn | 1099-4300 |
language | English |
last_indexed | 2024-03-09T03:27:14Z |
publishDate | 2022-07-01 |
publisher | MDPI AG |
record_format | Article |
series | Entropy |
spelling | doaj.art-433f8e477de5486b878346a33ef08de92023-12-03T15:00:30ZengMDPI AGEntropy1099-43002022-07-0124794710.3390/e24070947MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in SoftwareLing Yuan0Siyuan Zhou1Peng Pan2Zhenjiang Wang3Department of Computer Science, Huazhong University of Science and Technology, Wuhan 430074, ChinaDepartment of Computer Science, Huazhong University of Science and Technology, Wuhan 430074, ChinaDepartment of Computer Science, Huazhong University of Science and Technology, Wuhan 430074, ChinaDepartment of Computer Science, Huazhong University of Science and Technology, Wuhan 430074, ChinaWith the expansion of the scale and complexity of multimedia software, the detection of software defects has become a research hotspot. Because of the large scale of the existing software code, the efficiency and accuracy of the existing software defect detection algorithms are relatively low. We propose an intelligent memory leak detection scheme MLD based on defect modes in software. Based on the analysis of existing memory leak defect modes, we summarize memory operation behaviors (allocation, release and transfer) and present a state machine model. We employ a fuzzy matching algorithm based on regular expression to determine the memory operation behaviors and then analyze the change in the state machine to assess the vulnerability in the source code. To improve the efficiency of detection and solve the problem of repeated detection at the function call point, we propose a function summary method for memory operation behaviors. The experimental results demonstrate that the method we proposed has high detection speed and accuracy. The algorithm we proposed can identify the defects of the software, reduce the risk of being attacked to ensure safe operation.https://www.mdpi.com/1099-4300/24/7/947software defect detectionmemory leak detection algorithmsoftware detectiondefect modes |
spellingShingle | Ling Yuan Siyuan Zhou Peng Pan Zhenjiang Wang MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software Entropy software defect detection memory leak detection algorithm software detection defect modes |
title | MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software |
title_full | MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software |
title_fullStr | MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software |
title_full_unstemmed | MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software |
title_short | MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software |
title_sort | mld an intelligent memory leak detection scheme based on defect modes in software |
topic | software defect detection memory leak detection algorithm software detection defect modes |
url | https://www.mdpi.com/1099-4300/24/7/947 |
work_keys_str_mv | AT lingyuan mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware AT siyuanzhou mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware AT pengpan mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware AT zhenjiangwang mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware |