...
首页> 外文期刊>IEEJ Transactions on Electrical and Electronic Engineering >DFlow: A data flow analysis tool for C/C plus
【24h】

DFlow: A data flow analysis tool for C/C plus

机译:DFlow:C/C Plus的数据流分析工具

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

.Abstract syntax trees (ASTs), control flow graphs (CFGs), and data flow analysis (DFA) are prerequisites for static and dynamic analysis and vulnerability detection for programs; thus, obtaining them is significant. Recently, many tools related to generating ASTs, CFGs, and DFA have been proposed. However, most tools can only construct ASTs, very few can construct ASTs and CFGs, and almost none can construct all three. The vast majority of AST, CFG, and DFA tools are for other languages (e.g., Java and Python), and while a few are for C/C++, they are implemented in other languages, creating complex working environments, and overreliance on other language-related libraries. To address these shortcomings, we present a DFA tool, DFlow, for C/C++. First, a lexical/grammatical analyzer generated by Flex and Bison is used to analyze the program. Second, an AST is constructed from the results; then, a CFG is obtained from the analysis results and the information from the AST. Finally, based on the AST and CFG, DFA is performed, and the vulnerabilities of simple programs are determined. We test some common vulnerable code and common weakness enumeration slicing code, which show the effectiveness of DFlow in program data flow analysis and vulnerability checking. The results show that our tool can implement ASTs, CFGs, and DFA, and we add some rules to the tool for vulnerability detection. (c) 2021 Institute of Electrical Engineers of Japan. Published by Wiley Periodicals LLC.
机译:.Abtract语法树(ASTS),控制流程图(CFGS)和数据流分析(DFA)是静态和动态分析以及程序检测漏洞的先决条件;因此,获得它们是重要的。最近,已经提出了许多与生成AST,CFG和DF​​A有关的工具。但是,大多数工具只能构建AST,很少能构建AST和CFG,几乎没有一个可以构建这三个。 AST,CFG和DF​​A工具的绝大多数用于其他语言(例如Java和Python),尽管其中一些用于C/C ++,但它们是用其他语言来实施的,创造了复杂的工作环境,并且过分依赖其他语言 - 相关库。为了解决这些缺点,我们为C/C ++提供了DFA工具DFlow。首先,使用Flex和Bison生成的词汇/语法分析仪用于分析该程序。其次,从结果构建了AST;然后,从分析结果和来自AST的信息中获得CFG。最后,根据AST和CFG,执行DFA,并确定简单程序的漏洞。我们测试了一些常见的脆弱代码和共同的弱点切片代码,这些密码显示了DFLOW在程序数据流分析和漏洞检查中的有效性。结果表明,我们的工具可以实现AST,CFGS和DFA,我们为漏洞检测的工具添加了一些规则。 (c)2021日本电气工程师研究所。由Wiley Wendericals LLC出版。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号