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

一种静态检测C++异常安全的方法
引用本文:张彦春,刘坚. 一种静态检测C++异常安全的方法[J]. 计算机工程与应用, 2006, 42(27): 89-92
作者姓名:张彦春  刘坚
作者单位:西安电子科技大学软件工程研究所,西安,710071
摘    要:异常作为C++语言的错误处理机制,为C++程序设计提供了很多便利。恰当使用异常可以提高程序的健壮性,但不当使用会导致程序运行效率降低,甚至使程序崩溃。文章通过分析异常在C++程序中的各种表现形式,对异常安全漏洞进行了分类,在此基础上构建异常安全规则,采用过程间自下而上收集传递信息和过程内语法制导翻译相结合的方法,实现了C++异常安全的静态检查。

关 键 词:异常安全  安全漏洞  安全规则  静态检查
文章编号:1002-8331-(2006)27-0089-04
收稿时间:2005-12-01
修稿时间:2005-12-01

Approach of Statically Detecting C++ Exception Safety
ZHANG Yan-chun,LIU Jian. Approach of Statically Detecting C++ Exception Safety[J]. Computer Engineering and Applications, 2006, 42(27): 89-92
Authors:ZHANG Yan-chun  LIU Jian
Abstract:As an exception handling mechanism of C Language,exception has provided much advantage in C programming.Proper use of exception can improve robustness of program;otherwise it may lead to worse executing efficiency and even corrupt the program.This paper analyzes exception representation in C program and gives the classification of exception holes,in terms of which exception safety rules are constructed,and presents an approach of interprocedural bottom-up communicating of info and intraprocedural syntax-directed translation,which accomplishes statically detecting of C exception safety.
Keywords:exception safety   safety holes   safety rules   statically detecting
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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