C language defect detection method and device based on multi-level analysis

A technology of C language and sentences, which is applied in the field of C language defect detection, can solve the problems of difficult defect detection, complex defects, and inability to take into account the accuracy and efficiency of defect detection, so as to increase data dependency analysis and control dependency analysis, and improve accuracy , the effect of reducing the amount of calculation

Active Publication Date: 2020-05-05
TSINGHUA UNIV
View PDF13 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] As the C language program becomes more and more perfect, the amount of code contained in the C language program is increasing. For example, the code amount of the Windows operating system in 2003 is more than ten times that of 1993, resulting in such a complex In the operating system, defects tend to become more complex. For example, defects may need to be called across multiple functions, which makes defect detection more difficult, and cannot take into account the accuracy and efficiency of defect detection. Therefore, there is an urgent need for a A defect detection method that can balance the accuracy and efficiency of defect detection

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • C language defect detection method and device based on multi-level analysis
  • C language defect detection method and device based on multi-level analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0057] It should be noted that the terms "include" and "have" and any variations thereof in the embodiments of the present invention and the drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally further includes For other steps or units inhe...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a C language defect detection method and device based on multi-level analysis. The method comprises the following steps: calculating pointer pointing information of each function in the function call relation graph based on a path-sensitive pointer analysis method; performing inter-process analysis on a calling function corresponding to a function callingstatement in the function calling relational graph to obtain abstract information of the calling function; aiming at each node in the control flow graph, determining a control dependence correspondingrelation and a data dependence corresponding relation corresponding to the node; and generating a value flow graph according to the pointer pointing information of each function, the abstract information of the calling function, the control dependence corresponding relation corresponding to each node and the data dependence corresponding relation, and performing defect detection on the to-be-detected C language program according to the value flow graph to obtain a detection result. By applying the scheme provided by the embodiment of the invention, the accuracy and efficiency of defect detection can be considered.

Description

technical field [0001] The invention relates to the technical field of defect detection, in particular to a C language defect detection method and device based on multi-level analysis. Background technique [0002] At present, for the defects existing in the C language program, the method of static analysis is usually used for defect detection. [0003] As the C language program becomes more and more perfect, the amount of code contained in the C language program is increasing. For example, the code amount of the Windows operating system in 2003 is more than ten times that of 1993, resulting in such a complex In the operating system, defects tend to become more complex. For example, defects may need to be called across multiple functions, which makes defect detection more difficult, and cannot take into account the accuracy and efficiency of defect detection. Therefore, there is an urgent need for a A defect detection method that can balance the accuracy and efficiency of d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F8/75
CPCG06F8/75G06F11/3608
Inventor 周旻陈光胡晗王岳兴唐贞豪
Owner TSINGHUA UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products