arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1710.06125cs.PL
收藏

EffectiveSan:使用动态类型化的C/C ++进行类型和内存错误检测

EffectiveSan: Type and Memory Error Detection using Dynamically Typed C/C++

Gregory J. Duck, Roland H. C. Yap

摘要:

具有弱/静态类型系统的低级程序设计语言(如C和C++)容易受到与运行时内存滥用有关的错误的影响,如(子)对象边界溢出,释放后(重用)和类型混淆。这些错误导致了用这些语言编写的程序的许多安全性和其他未定义的行为错误。在本文中,我们介绍了动态类型的C/C++的概念,其目的是通过在运行时使用前动态检查每个对象的“有效类型”来检测此类错误。我们还提出了一个实现的动态类型的C/C++的形式有效的类型消毒器(antitiveSan)。CITIVESAN使用低脂肪指针、类型Meta数据和类型/边界检查仪器的组合来强制类型和内存安全。我们评估的SPEC 2006基准套件和Firefox Web浏览器,并检测到几个新的类型和内存错误。我们还表明,concretiveSan实现了高兼容性和合理的开销为给定的错误覆盖率。最后,我们强调,concentiveSan是仅有的几个工具,可以检测子对象边界错误之一,并使用一种新的方法(动态类型检查)这样做。

英文摘要:

Low-level programming languages with weak/static type systems, such as C and C++, are vulnerable to errors relating to the misuse of memory at runtime, such as (sub-)object bounds overflows, (re)use-after-free, and type confusion. Such errors account for many security and other undefined behavior bugs for programs written in these languages. In this paper, we introduce the notion of dynamically typed C/C++, which aims to detect such errors by dynamically checking the "effective type" of each object before use at runtime. We also present an implementation of dynamically typed C/C++ in the form of the Effective Type Sanitizer (EffectiveSan). EffectiveSan enforces type and memory safety using a combination of low-fat pointers, type meta data and type/bounds check instrumentation. We evaluate EffectiveSan against the SPEC2006 benchmark suite and the Firefox web browser, and detect several new type and memory errors. We also show that EffectiveSan achieves high compatibility and reasonable overheads for the given error coverage. Finally, we highlight that EffectiveSan is one of only a few tools that can detect sub-object bounds errors, and uses a novel approach (dynamic type checking) to do so.

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

↑