arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2105.11933cs.SE
收藏

一种用于指针相关代码克隆检测的集成推理引擎

Integrated Reasoning Engine for Pointer-related Code Clone Detection

Hongfa Xue, Yongsheng Mei, Kailash Gogineni, Guru Venkataramani, Tian Lan

摘要:

检测相似的代码片段(通常称为代码克隆)是一项重要的任务。特别是,代码克隆检测可以在漏洞发现、重构和剽窃检测的上下文中具有重要用途。但是,误报是不可避免的,并且始终需要手动审查。在本文中,我们提出了Twin-Twin+,一种新的闭环方法,用于指针相关的代码克隆检测,集成了机器学习和符号执行技术,以实现精度。Twin-Tools+引入了一种形式化验证机制,以自动执行此类手动评审过程。我们的实验结果表明,Twin-Twin+可以消除平均91.69%的假阳性。我们进一步使用真实世界的应用程序,链接版本2.14和libreOffice-6.0.0.1进行内存安全性分析。Twin-Build+在Links 2.14版本中发现了6个未报告的bug,在libreOffice-6.0.0.1中发现了一个公开修补的bug。

英文摘要:

Detecting similar code fragments, usually referred to as code clones, is an important task. In particular, code clone detection can have significant uses in the context of vulnerability discovery, refactoring and plagiarism detection. However, false positives are inevitable and always require manual reviews. In this paper, we propose Twin-Finder+, a novel closed-loop approach for pointer-related code clone detection that integrates machine learning and symbolic execution techniques to achieve precision. Twin-Finder+ introduces a formal verification mechanism to automate such manual reviews process. Our experimental results show Twin-Finder+ that can remove 91.69% false positives in average. We further conduct security analysis for memory safety using real-world applications, Links version 2.14 and libreOffice-6.0.0.1. Twin-Finder+ is able to find 6 unreported bugs in Links version 2.14 and one public patched bug in libreOffice-6.0.0.1.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑