A Hybrid Approach for Safe Memory Management in C.

Autor: Tlili, Syrine, Yang, Zhenrong, Ling, Hai Zhou, Debbabi, Mourad
Zdroj: Algebraic Methodology & Software Technology (9783540799795); 2008, p377-391, 15p
Abstrakt: In this paper, we present a novel approach that establishes a synergy between static and dynamic analyses for detecting memory errors in C code. We extend the standard C type system with effect, region, and host annotations that are relevant to memory management. We define static memory checks to detect memory errors using these annotations. The statically undecidable checks are delegated to dynamic code instrumentation to secure program executions. The static analysis guides its dynamic counterpart by locating instrumentation points and their execution paths. Our dynamic analysis instruments programs with in-lined monitors that observe program executions and ensure safe-fail when encountering memory errors. We prototype our approach by extending the GCC compiler with our type system, a dynamic monitoring library, and code instrumentation capabilities. [ABSTRACT FROM AUTHOR]
Databáze: Complementary Index