|
This article is cited in 1 scientific paper (total in 1 paper)
Inter-procedural buffer overflows detection in C/C++ source code via static analysis
I. A. Dudinaab a CMC MSU
b ISP RAS
Abstract:
We propose inter-procedural static analysis tool for buffer overflow detection. It is based on previously developed intra-procedural algorithm which uses symbolic execution with state merging. This algorithm is path-sensitive and supports tracking several kinds of value relations such as arithmetic operations, cast instructions, binary relations from constraints. In this paper we provide a formal definition for inter-procedural buffer overflow errors and discuss different kinds of such errors. We use function summaries for inter-procedural analysis, so it provides natural path-sensitivity in some degree. This approach allowed us to improve intra-procedural algorithm by tracking inter-procedural value dependencies. Furthermore, we introduce a technique to extract the sufficient condition of buffer overflow for a function, which is supposed to be stored in the summary of this function and checked at every call site. This approach was implemented for Svace static analyzer as the new buffer overflow detector, and it has shown 64% true-positive ratio on Android 5.0.2.
Keywords:
static analysis, software error detection, buffer overflow, path-sensitivity, symbolic execution, context-sensitivity, inter-procedural analysis.
Citation:
I. A. Dudina, “Inter-procedural buffer overflows detection in C/C++ source code via static analysis”, Proceedings of ISP RAS, 28:5 (2016), 119–134
Linking options:
https://www.mathnet.ru/eng/tisp71 https://www.mathnet.ru/eng/tisp/v28/i5/p119
|
Statistics & downloads: |
Abstract page: | 151 | Full-text PDF : | 68 | References: | 33 |
|