首页> 外国专利> Program analysis apparatus, error detection apparatus, program analysis method, error detection method, program analysis program, and error detection program

Program analysis apparatus, error detection apparatus, program analysis method, error detection method, program analysis program, and error detection program

机译:程序分析装置,错误检测装置,程序分析方法,错误检测方法,程序分析程序和错误检测程序

摘要

PROBLEM TO BE SOLVED: To provide a program analyzer capable of detecting erroneous use of a resource acquisition/release function which is used in a program by analyzing a source code in the program without specifying any resource acquisition/release function defined by a user.SOLUTION: The program analyzer picks up all line numbers k which call for a function f with respect to all combinations of different two functions f and g which appear in an input source code. In all execution channels following the line number k which call for the function, when a variable r storing a return value of the function f and the function g match with an occurrence pattern of a general resource storage variable and a general resource release function, the functions f and g are extracted as a resource acquisition function and a resource release function to thereby detect a point that the resource acquisition function refers to the acquisition resource in an uninitialized state. With this, erroneous use of user defined resource acquisition function and resource release function can be detected by means of static code analysis.SELECTED DRAWING: Figure 1
机译:要解决的问题:提供一种程序分析器,该程序分析器可以通过分析程序中的源代码来检测程序中使用的资源获取/释放功能的错误使用,而无需指定用户定义的任何资源获取/释放功能。 :程序分析器针对出现在输入源代码中的两个不同函数f和g的所有组合,选择所有需要函数f的行号k。在调用该函数的行号k之后的所有执行通道中,当存储函数f和函数g的返回值的变量r与通用资源存储变量和通用资源释放函数的出现模式匹配时,通过提取函数f和g作为资源获取函数和资源释放函数,从而检测到资源获取函数引用未初始化状态的获取资源的点。这样,可以通过静态代码分析来检测用户定义的资源获取功能和资源释放功能的错误使用。选定的图:图1

著录项

  • 公开/公告号JP6301851B2

    专利类型

  • 公开/公告日2018-03-28

    原文格式PDF

  • 申请/专利权人 日本電信電話株式会社;

    申请/专利号JP20150028456

  • 发明设计人 南田 幸紀;柴田 弘;

    申请日2015-02-17

  • 分类号G06F11/36;

  • 国家 JP

  • 入库时间 2022-08-21 13:07:45

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号