Font Size: a A A

A Method To Detect Memory Leak Of C++Field Member

Posted on:2016-12-29Degree:MasterType:Thesis
Country:ChinaCandidate:S W LiuFull Text:PDF
GTID:2298330467492622Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
With the increasing scale and cost of software, how to ensure the reliability of the software is becoming a much concerned topic. Software testing, especially the static analysis of software, has been rapid development as an effective way to keep the reliability. The development of defect detection system based on defect mode, which has automated testing functions to some extent, saves a lot of labor costs.Through the analysis of experimental data, this paper presents the defect mode of C++class member memory leak. As we all know, the defect of memory leak in C++language is so common and hard to be detected by static analysis. Although many methods has been proposed to detect this type of defect so far, while, most of the detection methods ignore the phenomenon that defects may be produced in the class inheritance structure. This paper show you a kind of memory leak defect from the angle of class inheritance. The article give you the reason of why this kind of defect produces and come out an algorithm to detect the defects, as well.Based on the C++class characteristic analysis, this paper summed up four types of mode of class member memory leaks. After analyzing the characteristics of each modes and causes, this paper designed memory leak detection algorithm combined with the using of method summary technology. After some experiments, the class member memory leak detection algorithm proposed in this paper can effectively detect this type of defects.
Keywords/Search Tags:memory leak, software testing, reliability, static analysis
PDF Full Text Request
Related items