Paper
3 January 2025 Boosting static bug detection via demand-driven points-to analysis
Xuqing Yang
Author Affiliations +
Proceedings Volume 13519, Third International Conference on Communications, Information System, and Data Science (CISDS 2024); 1351909 (2025) https://doi.org/10.1117/12.3057629
Event: Third International Conference on Communications, Information System and Data Science 2024, 2024, Nanjing, China
Abstract
Static bug detection techniques have advanced significantly in identifying issues such as null pointer dereferences, memory leaks, and use-after-free vulnerabilities. However, existing methods that rely on pre-computed points-to analysis often struggle with scalability and precision, especially when handling complex pointer manipulations and deep call contexts. To address the scalability challenges of precise points-to analysis, we propose a fused approach for bug detection. Initially, we utilize an inexpensive Andersen points-to analysis to construct a sparse yet coarse program memory model. High-precision analysis is then applied selectively, only when necessary, reducing redundant computations and enhancing accuracy. This combination of coarse modeling and on-demand precision enables efficient and scalable bug detection. Experimental results across five real-world benchmarks show that our demand-driven flow-, context- and path-sensitive approach achieves up to a 4.55x speedup in analysis time compared to traditional eager flow-sensitive analysis. Notably, our approach successfully completes the analysis of large-scale programs such as sqlite3, which time out under traditional approaches. Additionally, our approach reduces false positives by over 70%, maintaining the detection of all true positive bugs. These results demonstrate the effectiveness of our approach in improving the efficiency and precision of static bug detection.
(2025) Published by SPIE. Downloading of the abstract is permitted for personal use only.
Xuqing Yang "Boosting static bug detection via demand-driven points-to analysis", Proc. SPIE 13519, Third International Conference on Communications, Information System, and Data Science (CISDS 2024), 1351909 (3 January 2025); https://doi.org/10.1117/12.3057629
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
Back to Top