Analysis of Programs with Pointer Arithmetic by Combining Points-to and Numerical Abstractions

Bang-hu YIN,Li-qian CHEN,Ji WANG
DOI: https://doi.org/10.11896/j.issn.1002-137X.2015.7.008
2015-01-01
Computer Science
Abstract:Programs with pointer arithmetic often involve runtime errors such as array out of bound,buffer overflow,etc.Pure pointer analysis and pure numerical analysis cannot deal with pointer arithmetic.To combine pointer analysis and numerical analysis,we proposed a new pointer memory model.On this basis,we presented an abstract domain to capture points-to and offset information of pointers.Finally,under the framework of abstract interpretation,we implemented a static analyzer prototype named PAA for analyzing C programs with pointer arithmetic.Experimental results show that PAA can analyze points-to and numerical properties of programs with pointer arithmetic effectively.Moreover,PAA can achieve a reasonable trade-off between efficiency and accuracy.
What problem does this paper attempt to address?