Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Detection analysis method and device for static code defects

A defect detection and analysis method technology, applied in the field of code testing, can solve problems such as low efficiency, and achieve the effects of improving efficiency, reducing scale, and avoiding memory overflow

Active Publication Date: 2017-01-04
BEIJING UNIV OF POSTS & TELECOMM
View PDF6 Cites 46 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In short, the problem of the prior art: the existing static code defect detection and analysis method is to perform detection and analysis in a serial detection and analysis mode, which makes it inefficient when a large number of engineering files need to be detected and analyzed

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
  • Detection analysis method and device for static code defects
  • Detection analysis method and device for static code defects
  • Detection analysis method and device for static code defects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.

[0055] The embodiment of the present invention discloses a static code defect detection and analysis method, which is specifically combined with the figure 1 Detailed description, including the following steps:

[0056] Step S1: Obtain the source code file to be tested, wherein the source code file to be tested includes: a plurality of test units of the source code file segment to be tested;

[0057] According to the programming language such as C language an...

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 detection analysis method and device for static code defects. The problem that the existing code defect detection analysis of a to-be-detected source code file is low in efficiency is solved. The detection analysis method includes the steps that a to-be-detected source code file is obtained, wherein the to-be-detected source code file comprises test units of a plurality of to-be-detected source code file sections; according to the to-be-detected source code file, an abstract syntax tree is generated; according to the abstract syntax tree, correlations between all present test units and other test units are set, and the correlated dependency relationships between all the present test units and the other test units are obtained, wherein the other test units are the other test units except for the present test unit in the multiple test units; according to the dependency relationships, serial detection analysis and parallel detection analysis are combined, code defects of the to-be-detected source code file are detected and analyzed, and the detection analysis efficiency of the code defects of the to-be-detected source code file is improved.

Description

technical field [0001] The invention relates to the field of code testing, in particular to a static code defect detection and analysis method and device. Background technique [0002] With the increasing development of software technology, the complexity and scale of software systems are also constantly expanding, which will inevitably lead to BUG (defects) and mistakes in the code, resulting in software problems and their harm The security is becoming more and more obvious, and the huge losses or disasters caused by software code problems are constantly appearing in people's field of vision. In order to solve these problems, software testing is particularly important. At present, software testing is mainly carried out through two aspects: dynamic detection and analysis and static detection and analysis. Among them, static detection analysis refers to not running the tested code itself, but only checking the correctness of the program by analyzing or checking the syntax, s...

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
IPC IPC(8): G06F11/36
CPCG06F11/3608
Inventor 宫云战邓秋晗金大海黄俊飞王雅文
Owner BEIJING UNIV OF POSTS & TELECOMM
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products