Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2006, Vol. 32 ›› Issue (3): 70-72.

• Software Technology and Database • Previous Articles     Next Articles

Static Test and Analysis of Array Bound

GAO Chuanping, GONG Yunzhan   

  1. Information Engineering Department, Armored Force Engineering Institute, Beijing 100072
  • Online:2006-02-05 Published:2006-02-05

数组越界的静态测试分析

高传平,宫云战   

  1. 装甲兵工程学院信息工程系,北京 100072

Abstract: This paper gives a static analysis method with the advantage that it can know where there is this sort of faults before programs running. At first it analyses the error types about the array bound, introduces some basic concepts, gives a static analysis method about the fault type and the relevant algorithm, and then designs the testing system. At last, an experiment result is given.

Key words: Array bound; Static analysis; Algorithm; Control flow chart

摘要: 给出了一种静态分析方法,静态分析的主要优点就是在程序运行之前就可以对程序故障进行定位。文章首先针对数组越界错误类型进行了分析,介绍了软件测试的一些基本概念,给出了这类错误的静态分析方法,并给出了相应的算法,而后给出了测试系统设计和开发,最后给出了软件测试的实验结果和分析。

关键词: 数组越界;静态分析;算法;控制流图