{"title":"C/ c++中内存泄漏的检测","authors":"Rahul Jain, Raksha Agrawal, Riyanshi Gupta, Rajat Kumar Jain, Neha Kapil, Ankit Saxena","doi":"10.1109/SCEECS48394.2020.32","DOIUrl":null,"url":null,"abstract":"Memory leaks are one of the main reasons for Software Aging. Irrespective of recent countermeasures in C/C++ such as smart pointers, leak-related issues remain a troublesome issue in C/C++ code. We propose an algorithm for automatic detection of memory leaks in C/C++ programs based on solving disjoint sets of graphs which comprises of memory objects as nodes and their references as edges in order to find the memory leaks within the application. For this an object database and structure database is created and MLD algorithm is applied. Thus, it helps in keeping a record of memory leaks in the application.","PeriodicalId":167175,"journal":{"name":"2020 IEEE International Students' Conference on Electrical,Electronics and Computer Science (SCEECS)","volume":"221 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Detection of Memory Leaks in C/C++\",\"authors\":\"Rahul Jain, Raksha Agrawal, Riyanshi Gupta, Rajat Kumar Jain, Neha Kapil, Ankit Saxena\",\"doi\":\"10.1109/SCEECS48394.2020.32\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Memory leaks are one of the main reasons for Software Aging. Irrespective of recent countermeasures in C/C++ such as smart pointers, leak-related issues remain a troublesome issue in C/C++ code. We propose an algorithm for automatic detection of memory leaks in C/C++ programs based on solving disjoint sets of graphs which comprises of memory objects as nodes and their references as edges in order to find the memory leaks within the application. For this an object database and structure database is created and MLD algorithm is applied. Thus, it helps in keeping a record of memory leaks in the application.\",\"PeriodicalId\":167175,\"journal\":{\"name\":\"2020 IEEE International Students' Conference on Electrical,Electronics and Computer Science (SCEECS)\",\"volume\":\"221 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2020-02-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2020 IEEE International Students' Conference on Electrical,Electronics and Computer Science (SCEECS)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/SCEECS48394.2020.32\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 IEEE International Students' Conference on Electrical,Electronics and Computer Science (SCEECS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SCEECS48394.2020.32","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Memory leaks are one of the main reasons for Software Aging. Irrespective of recent countermeasures in C/C++ such as smart pointers, leak-related issues remain a troublesome issue in C/C++ code. We propose an algorithm for automatic detection of memory leaks in C/C++ programs based on solving disjoint sets of graphs which comprises of memory objects as nodes and their references as edges in order to find the memory leaks within the application. For this an object database and structure database is created and MLD algorithm is applied. Thus, it helps in keeping a record of memory leaks in the application.