首页 | 官方网站   微博 | 高级检索  
     

基于整型区间集的数组越界静态自动测试方法研究
引用本文:高传平,谈利群,宫云战,张威.基于整型区间集的数组越界静态自动测试方法研究[J].小型微型计算机系统,2006,27(12):2222-2227.
作者姓名:高传平  谈利群  宫云战  张威
作者单位:1. 北方交通大学,计算所,北京,100029
2. 装甲兵工程学院,信息工程系,北京,100072
摘    要:数组越界是软件中普遍存在的一种故障类型,并对软件安全造成了潜在的威胁.传统的故障检测使用程序插装的方法,并相应的以编译优化技术来排除掉多余的数组边界检查.这种检测方法不仅降低了程序运行效率,增加了开销,而且往往不能对故障进行彻底的测试,容易造成漏报.本文在对程序进行静态分析的基础上,通过引入区间概念,建立了整型区间集和数组区间集,进而给出了数组越界的故障模型,模型的建立对软件故障进行了规范.本文随后给出了故障检测算法,最后给出了实验.结果表明这种方法比以往的测试方法具有更强的故障检测能力.

关 键 词:软件测试  整型区间集  静态分析  数组越界  语法树
文章编号:1000-1220(2006)12-2222-06
收稿时间:09 12 2005 12:00AM
修稿时间:2005-09-12

Research on Static and Auto-Testing Method for Array Bounds Based on Integer Range Aggregation
GAO Chuan-ping,TAN Li-qun,GONG Yun-zhan,ZHANG Wei.Research on Static and Auto-Testing Method for Array Bounds Based on Integer Range Aggregation[J].Mini-micro Systems,2006,27(12):2222-2227.
Authors:GAO Chuan-ping  TAN Li-qun  GONG Yun-zhan  ZHANG Wei
Affiliation:1.Computing Technology Lnstitute, Northern Transportation Llniversity, Beijing 100029 ,China; 2.Department of Information Engineering, Academy of Armored Force Engineering, Beijing 100072, China
Abstract:As a kind of faults in programs, the issue of out of bound of arrays(OOB) threatens software security potentially. Conventional fault testing uses the method of code insertion, and eliminates the redundant array bound checking with optimization technique of compiling time. This method not only reduces the efficiency that programs run, but also increases the spending. Furthermore, it cannot test the programs thoroughly and results to miss some faults easily. On the basis of static analysis of programs, this paper introduces the corcopt of range and sets up integer and array range congregation. Then the paper presents a model of OOB faults. This model can standardizes the software faults. The paper presents a fault testing algorithm and gives experiment results. Experiment result shows that this method has stronger and better fault testing ability than the existing methods.
Keywords:software testing  integer range congregation  static analysis  out of bound of arrays  syntax tree
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号