期刊文献+

基于扩展状态机的资源泄漏检测方法

Testing Method of Resource Leak Defects Based on Extended State Machine
原文传递
导出
摘要 基于扩展状态机对资源泄漏故障进行描述,给出了资源泄漏缺陷状态机,定义了缺陷的状态、状态迁移图和状态转换表。设计和实现了资源泄漏检测算法。该算法在对控制流进行遍历的过程中,按照资源泄漏缺陷状态机给出的转换条件进行状态计算,如果计算结果为故障,则报告1个资源泄漏故障。应用该算法对大型开源软件进行测试,发现多个资源泄漏故障。测试结果表明:该算法具有测试效率高和误报率低等特点。 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.
出处 《装甲兵工程学院学报》 2009年第1期70-72,共3页 Journal of Academy of Armored Force Engineering
关键词 软件测试 静态分析 缺陷模式 状态机 software testing static analysis defect patterns state machine
  • 相关文献

参考文献4

  • 1Yang Junfeng,Can Sar,Dawson Engler.EXplode:a Lightweight,General System for Finding Serious Storage System Errors[C]∥7th USENIX Symposium on Operating Systems Design and Implementation.Washington:USENIX ASSOC,2006:131-146.
  • 2Engler D,Chelf B,Chou A,et al.Checking System Rules Using System-specific,Programmer-written Compiler EXtensions[C] ∥4th Symposium on Operating Systems Design and Implementation.San Diego:USENIX ASSOC,2000:1-6.
  • 3Ashcraft K,Engler D.Using Programmer-Written Compiler EXtensions to Catch Security Holes[C]∥Proceedings of the 2002 IEEE Symposium on Security and Privacy.California:ACM Press,2002:143-159.
  • 4David Hovemeyer,William Pugh.Finding Bugs is Easy[J].ACM SIGPLAN Notices,2004,39(12):92-106.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部