Cargando…
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...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9324000/ https://www.ncbi.nlm.nih.gov/pubmed/35885168 http://dx.doi.org/10.3390/e24070947 |
_version_ | 1784756699577450496 |
---|---|
author | Yuan, Ling Zhou, Siyuan Pan, Peng Wang, Zhenjiang |
author_facet | Yuan, Ling Zhou, Siyuan Pan, Peng Wang, Zhenjiang |
author_sort | Yuan, Ling |
collection | PubMed |
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. |
format | Online Article Text |
id | pubmed-9324000 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-93240002022-07-27 MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software Yuan, Ling Zhou, Siyuan Pan, Peng Wang, Zhenjiang Entropy (Basel) Article 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. MDPI 2022-07-07 /pmc/articles/PMC9324000/ /pubmed/35885168 http://dx.doi.org/10.3390/e24070947 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Yuan, Ling Zhou, Siyuan Pan, Peng Wang, Zhenjiang MLD: An Intelligent Memory Leak Detection Scheme Based on Defect Modes in Software |
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 | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9324000/ https://www.ncbi.nlm.nih.gov/pubmed/35885168 http://dx.doi.org/10.3390/e24070947 |
work_keys_str_mv | AT yuanling mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware AT zhousiyuan mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware AT panpeng mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware AT wangzhenjiang mldanintelligentmemoryleakdetectionschemebasedondefectmodesinsoftware |