检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:匡海燕 张玉中 刘仁千 李国杰 谷威 Kuang Haiyan;Zhang Yuzhong;Liu Renqian;Li Guojie;Gu Wei(XJ Electric Co., Ltd., Xuchang 461000, China)
机构地区:[1]许继电气股份有限公司
出 处:《计算机测量与控制》2019年第7期36-39,共4页Computer Measurement &Control
基 金:国家电网许继集团重点项目(5292C0170039)
摘 要:Qt继承了C++语言动态分配内存机制,保证了开发人员能根据实际需要灵活地使用内存,同时Qt也不可避免的要面对“内存泄漏”这个严重威胁软件安全的问题,虽然Qt采取了半自动化内存管理机制等措施,但不能从根本上解决问题;对此,提出了一种基于Qt的软件内存泄漏静态检测方法,该方法针对Qt的半自动化内存管理机制,通过静态分析被测对象中分配内存的代码识别出是否属于Qt自动管理的范围,从而准确地检测出内存泄漏和内存重复释放问题;并基于该检测方法设计了一种Qt内存泄漏自动检测工具,该工具能很大程度上提高测试效率。Qt inherits C++ language dynamic allocating memory management mechanism, it ensures that the developers can flexible use memory according to the actual needs. Meanwhile Qt has to face the “memory leak” problem of serious threating to software security. Although Qt adopted measures such as semi-automatic memory management mechanism, it has not fundamentally solved the problem. Therefore, this paper proposes a static detection method of software based Qt memory leak. For this semi-automatic memory management mechanism of QT, this method can identify whether belongs to the scope of Qt automatic management by statically analyzing these codes where the tested object allocated memory. Thereby it can accurately detect memory leak and memory repeated release. And based on this detection method, an automatic Qt memory leak detection tool is designed. This tool can greatly improve the test efficiency.
关 键 词:Qt内存管理机制 内存泄漏 内存重复释放 静态检测技术
分 类 号:V249.32[航空宇航科学与技术—飞行器设计]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.49