Abstract
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.
Subject
General Physics and Astronomy
Reference23 articles.
1. Joint-transformation-based detection of false data injection attacks in multimedia;IEEE Trans. Ind. Inform.,2017
2. Ma, X., Yan, J., Wang, W., Yan, J., Zhang, J., and Qiu, Z. (2021, January 15–19). Detecting Memory-Related Bugs by Tracking Heap Memory Management of C++ Smart Pointers. Proceedings of the 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE), Melbourne, Australia.
3. Clause, J., and Orso, A. (2010, January 2–8). LEAKPOINT: Pinpointing the causes of memory leaks. Proceedings of the 2010 ACM/IEEE 32nd International Conference on Software Engineering, Cape Town, South Africa.
4. Valgrind: A framework for heavyweight dynamic binary instrumentation;ACM Sigplan Not.,2007
5. Reed Hastings, B.J. (1991, January 8–12). Purify: Fast detection of memory leaks and access errors. Proceedings of the Winter 1992 Usenix Conference, San Francisco, CA, USA.