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

基于扩展状态机的资源泄漏检测方法
引用本文:杨朝红,刘海燕,肖庆. 基于扩展状态机的资源泄漏检测方法[J]. 装甲兵工程学院学报, 2009, 23(1): 70-72
作者姓名:杨朝红  刘海燕  肖庆
作者单位:装甲兵工程学院,信息工程系,北京,100072
摘    要:基于扩展状态机对资源泄漏故障进行描述,给出了资源泄漏缺陷状态机,定义了缺陷的状态、状态迁移图和状态转换表。设计和实现了资源泄漏检测算法。该算法在对控制流进行遍历的过程中,按照资源泄漏缺陷状态机给出的转换条件进行状态计算,如果计算结果为故障,则报告1个资源泄漏故障。应用该算法对大型开源软件进行测试,发现多个资源泄漏故障。测试结果表明:该算法具有测试效率高和误报率低等特点。

关 键 词:软件测试  静态分析  缺陷模式  状态机

Testing Method of Resource Leak Defects Based on Extended State Machine
YANG Zhao-hong,LIU Hai-yan,XIAO Qing. Testing Method of Resource Leak Defects Based on Extended State Machine[J]. Journal of Armored Force Engineering Institute, 2009, 23(1): 70-72
Authors:YANG Zhao-hong  LIU Hai-yan  XIAO Qing
Affiliation:(Department of Information Engineering, Academy of Armored Force Engineering, Beijing 100072, China)
Abstract:By using extended state machine, this paper describes the resource leak defect, gives its state machine, and defines its state and state-transition graph and table. Then the testing method of resource leak defects is designed and implemented. It computes the states according to transition conditions given by the resource defect state machine in the course of traversing control flow, and reports a resource leak fault if a fault state is reached. It is applied to testing large open-source programs and has found a number of resource leak defects. The experiments show that it can test the code efficiently with low false report.
Keywords:software testing  static analysis  defect patterns  state machine
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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