A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction
Wei Li, Dongjie He, Yujiang Gui, Wenguang Chen, Jingling Xue · 2024
Existing program analysis tools for Rust lack the ability to effectively detect security vulnerabilities due to the absence of an accurate call graph and precise points-to information. We present Rupta, the first context-sensitive pointer analysis framework designed for Rust, with a particular focus on its role in constructing call graphs. Operating on Rust MIR, Rupta employs callsite-based context-sensitivity and on-the-fly call graph construction to address a range of pointer analysis challenges, including method/function calls, pointer casts, and nested structs, while preserving type information.