期刊文献+

C/C++源代码静态检测系统的设计和实现

Design and implementation of the static detection system of C/C++ source codes
下载PDF
导出
摘要 为了检测出C/C++源代码程序中常见的运行时错误,设计了一个静态检测系统。该系统通过词法分析、语法分析、语义分析来获取程序的语法树。然后系统的检测程序将会分析语法树的每一个结点,判断结点中的属性信息是否存在错误。创新点在于语法树数据结构和检测程序的设计。通过检测程序对结点的属性值的分析,能够检测出C/C++源代码程序中出现的数组越界、指针错误、字符串函数错误,内存泄露等问题。 A static detection system is designed in order to detect C/C++ source codes that probably have several runtime errors.This system will change the source code into an AST through lexical analysis,syntax analysis and semantic analysis,and then the system will check every node of the AST and judge whether there are errors in the nodes.The innovation points are the design of AST date structure and checking program.With checking program's analysis to the values of nodes,it could find out some runtime errors such as array out of bound,storage overflow,memory leak and function errors.
作者 饶坤 彭四伟
机构地区 北京化工大学
出处 《电子设计工程》 2011年第12期28-31,共4页 Electronic Design Engineering
关键词 数组越界 存储越界 内存泄露 语法树 array out of bound memory leak storage overflow AST
  • 相关文献

参考文献8

  • 1Louden,K C 编译,冯博琴,译.原理及实践[M].北京:国防工业出版社,2000..
  • 2苑文会,彭四伟.源代码在线评测系统的设计与实现[J].计算机与数字工程,2006,34(9):130-132. 被引量:9
  • 3Bill V. Solve real problems with aglets,a type of mobile agent[J]. Java World ManaZine, 1997,15 (6) : 31-35.
  • 4Mickunas M D,Modry J A. Automatic error recovery for LR parsers[M]. ACM Press, 1978.
  • 5David C, Colin H, Aaron K. Mobile agents:are they a good Idea[R]. Research Report,IBM Research Division,T J Watson Center, 1995.
  • 6Fuggetta A,Picco G,Vigna G. Understanding code mobility[J]. IEEE Trans on Software Engineering, 1998,24(5) :342-361.
  • 7Lange Danny B, Mitsurn O. Program-ming and deploying mobile agent with Java[M]. AddisonWesley, 1998,.
  • 8Meyers S. Effective C++[M]. Addsion Wesley, 1998.

二级参考文献6

共引文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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