首页> 中文期刊> 《计算机工程与应用》 >C程序非法计算缺陷的静态检测

C程序非法计算缺陷的静态检测

         

摘要

为实现基于静态分析技术自动的检测C程序中的非法计算缺陷,提出了一种基于区域内存模型进行非法计算缺陷检测的方法。对C程序中的非法计算缺陷操作归纳总结出其受限集,以对相应运算进行约束;通过抽象的区域内存模型表示实际的内存存储,实现了基于抽象内存区域内存模型的数据流分析;基于数据流分析的结果,判定C程序中的受限操作是否违背受限集的约束,以实现非法计算缺陷的检测。5个实际工程的检测结果分析表明,该方法可有效地检测出C程序的各类非法计算缺陷。%In order to automatically detect illegal computing defects for C procedures based on static analysis, this paper introduces a method based on region-based memory model. Firstly, a restricted set is proposed, which can describe the constraint of illegal computing operation. Then, an abstract region-based memory model is introduced to describe actual memory, and dataflow analysis is implemented based on this model. Furthermore, this paper introduces an illegal computing defect detection method based on the result of dataflow analysis, which determines the illegal computing operation by judging restricted operations whether or not violate constraints. Experimental results of five real projects show that this method can detect various illegal computing defects.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号