首页 | 本学科首页   官方微博 | 高级检索  
     

基于指向与数值抽象的带指针算术程序的分析方法
引用本文:尹帮虎,陈立前,王 戟.基于指向与数值抽象的带指针算术程序的分析方法[J].计算机科学,2015,42(7):32-37.
作者姓名:尹帮虎  陈立前  王 戟
作者单位:国防科学技术大学计算机学院并行与分布处理国防科技重点实验室 长沙410073,国防科学技术大学计算机学院并行与分布处理国防科技重点实验室 长沙410073,国防科学技术大学计算机学院并行与分布处理国防科技重点实验室 长沙410073
基金项目:本文受国家自然科学基金(61202120,7),教育部博士点基金(20124307120034)资助
摘    要:带指针算术的程序往往包含数组越界、缓冲区溢出等运行时错误。单纯的指针分析技术和数值分析技术都无法有效处理指针算术。为了将指针分析与数值分析相结合,首先提出一种新的指针内存模型,然后基于该模型设计了一个刻画指针指向关系和指针偏移量的抽象域。最后在抽象解释框架下,设计并实现了一个面向带指针算术C程序的静态分析工具原型PAA。实验结果表明,PAA能够有效地分析指针程序的指向关系和数值性质,并能够在效率和精度间取得合理的权衡。

关 键 词:静态分析  抽象解释  指向分析  数值抽象域

Analysis of Programs with Pointer Arithmetic by Combining Points-to and Numerical Abstractions
YIN Bang hu,CHEN Li qian and WANG Ji.Analysis of Programs with Pointer Arithmetic by Combining Points-to and Numerical Abstractions[J].Computer Science,2015,42(7):32-37.
Authors:YIN Bang hu  CHEN Li qian and WANG Ji
Affiliation:National Laboratory for Parallel and Distributed Processing,School of Computer Science, National University of Defense Technology,Changsha 410073,China,National Laboratory for Parallel and Distributed Processing,School of Computer Science, National University of Defense Technology,Changsha 410073,China and National Laboratory for Parallel and Distributed Processing,School of Computer Science, National University of Defense Technology,Changsha 410073,China
Abstract:ions YIN Bang-hu CHEN Li-qian WANG Ji (National Laboratory for Parallel and Distributed Processing,School of Computer Science, National University of Defense Technology,Changsha 410073,China) 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.More-over,PAA can achieve a reasonable trade-off between efficiency and accuracy.
Keywords:Static analysis  Interpretation  Points-to analysis  Numerical abstract domain
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号