LeakGuard:准确且可扩展地检测内存泄漏
LeakGuard: Detecting Memory Leaks Accurately and Scalably
AI总结:
提出内存泄漏检测工具LeakGuard,通过路径敏感分析、函数摘要、指针逃逸分析和欠约束符号执行技术,在准确率与可扩展性间取得平衡,并成功发现129个新漏洞。
摘要:
内存泄漏在各种真实世界软件项目中普遍存在,从而导致拒绝服务等严重攻击。尽管先前的内存泄漏检测方法取得了显著进展,但它们在测试大型复杂程序时通常存在准确率低和可扩展性弱的问题。在本文中,我们提出了LeakGuard,这是一种内存泄漏检测工具,在准确性和可扩展性之间提供了令人满意的平衡。为了提高准确性,LeakGuard以路径敏感的方式分析库和开发者定义的内存分配与释放函数的行为,并以自下而上的方式为它们生成函数摘要。此外,我们开发了一种指针逃逸分析技术来对指针所有权的转移进行建模。为了实现可扩展性,LeakGuard通过使用函数摘要和欠约束符号执行技术独立地检查每个目标函数,这有效缓解了路径爆炸问题。我们在18个真实世界软件项目和标准基准数据集上的广泛评估表明,LeakGuard在多个方面取得了显著进展:与Goshawk相比,它展现出更卓越的MAD函数识别能力,在缺陷检测准确率上优于五种最先进的方法,并成功识别了129个先前未检测到的内存泄漏漏洞,所有这些漏洞均已得到各相关开发团队的独立验证和确认。
英文摘要:
Memory leaks are prevalent in various real-world software projects, thereby leading to serious attacks like denial-of-service. Though prior methods for detecting memory leaks made significant advance, they often suffer from low accuracy and weak scalability for testing large and complex programs. In this paper we present LeakGuard, a memory leak detection tool which provides satisfactory balance of accuracy and scalability. For accuracy, LeakGuard analyzes the behaviors of library and developer-defined memory allocation and deallocation functions in a path-sensitive manner and generates function summaries for them in a bottom-up approach. Additionally, we develop a pointer escape analysis technique to model the transfer of pointer ownership. For scalability, LeakGuard examines each function of interest independently by using its function summary and under-constrained symbolic execution technique, which effectively mitigates path explosion problem. Our extensive evaluation on 18 real-world software projects and standard benchmark datasets demonstrates that LeakGuard achieves significant advancements in multiple aspects: it exhibits superior MAD function identification capability compared to Goshawk, outperforms five state-of-the-art methods in defect detection accuracy, and successfully identifies 129 previously undetected memory leak bugs, all of which have been independently verified and confirmed by the respective development teams.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。