首页> 外文OA文献 >ReDeBug: Finding Unpatched Code Clones in Entire OS Distributions
【2h】

ReDeBug: Finding Unpatched Code Clones in Entire OS Distributions

机译:ReDeBug:在整个OS发行版中查找未打补丁的代码克隆

摘要

Programmers should never fix the same bug twice. Unfortunately this often happens when patches to buggy code are not propagated to all code clones. Unpatched code clones represent latent bugs, and for security-critical problems, latent vulnerabilities, thus are important to detect quickly. In this paper we present ReDeBug, a system for quickly finding unpatched code clones in OS-distribution scale code bases. While there has been previous work on code clone detection, ReDeBug represents a unique design point that uses a quick, syntax-based approach that scales to OS distribution-sized code bases that include code written in many different languages. Compared to previous approaches, ReDeBug may find fewer code clones, but gains scale, speed, reduces the false detection rate, and is language agnostic. We evaluated ReDeBug by checking all code from all packages in the Debian Lenny/Squeeze, Ubuntu Maverick/Oneiric, all Source Forge C and C++ projects, and the Linux kernel for unpatched code clones. ReDeBug processed over 2.1 billion lines of code at 700,000 LoC/min to build a source code database, then found 15,546 unpatched copies of known vulnerable code in currently deployed code by checking 376 Debian/Ubuntu security-related patches in 8 minutes on a commodity desktop machine. We show the real world impact of ReDeBug by confirming 145 real bugs in the latest version of Debian Squeeze packages.
机译:程序员切勿两次修复同一错误。不幸的是,当错误代码的补丁未传播到所有代码克隆时,通常会发生这种情况。未修补的代码克隆表示潜在的错误,对于安全性至关重要的问题,潜在的漏洞对于快速检测非常重要。在本文中,我们介绍了ReDeBug,它是一种用于在OS分布级代码库中快速查找未修补的代码克隆的系统。尽管以前已经进行过代码克隆检测的工作,但是ReDeBug代表了一个独特的设计点,该设计点使用了一种基于语法的快速方法,该方法可扩展到OS发行版大小的代码库,其中包括用多种不同语言编写的代码。与以前的方法相比,ReDeBug可以找到较少的代码克隆,但可以提高规模,提高速度,降低错误检测率,并且与语言无关。我们通过检查Debian Lenny / Squeeze,Ubuntu Maverick / Oneiric,所有Source Forge C和C ++项目以及Linux内核中所有未修补代码克隆中所有软件包中的所有代码来评估ReDeBug。 ReDeBug以700,000 LoC / min的速度处理了超过21亿行代码,以构建源代码数据库,然后通过在商品桌面上在8分钟内检查376个与Debian / Ubuntu安全相关的补丁,在当前部署的代码中找到了15546个已知漏洞代码的未修补副本。机。通过确认最新版本的Debian Squeeze软件包中的145个真实错误,我们展示了ReDeBug对现实世界的影响。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号