Supercharge Your Innovation With Domain-Expert AI Agents!

Static source code scanning method, device, computer device and storage medium

A scanning method and source code technology, applied in the field of data processing, can solve the problems of complex analysis process and low efficiency, and achieve the effect of simple analysis process and improved analysis efficiency.

Active Publication Date: 2019-01-01
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] For this reason, this application proposes a static source code scanning method, device, computer equipment and storage medium, which is used to solve the problem of first converting the source code into a corresponding control flow graph in the prior art, and then performing traversal analysis on the control flow graph to achieve Static scanning of source code to analyze technical problems with complex process and low efficiency

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
  • Static source code scanning method, device, computer device and storage medium
  • Static source code scanning method, device, computer device and storage medium
  • Static source code scanning method, device, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0033] The following describes the static source code scanning method, device, computer equipment, and storage medium of the embodiments of the present application with reference to the accompanying drawings.

[0034] figure 1 It is a schematic flowchart of a static source code scanning method provided in the embodiment of the present application.

[0035] Such as figure 1 As shown, the static source code scanning method may include the following steps:

[0036] Step 101, obtain the abstract syntax tree corresponding to t...

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 invention provides a static source code scanning method, a device, a computer device and a storage medium, wherein, the method comprises the following steps of: obtaining an abstract syntax tree corresponding to the source code to be scanned; parsing code information in the abstract syntax tree to generate an execution chain set corresponding to the abstract syntax tree, wherein each executionchain in the execution chain set corresponds to an execution path in the source code respectively; each execution chain in the set of execution chains is traversed to determine whether the source code contains defective code. Through the method, the defect code can be determined only by analyzing each execution chain, the analysis process is simple and reliable, the analysis efficiency is improved, and the technical problem that the source code is converted into a corresponding control flow chart first in the prior art, and then the control flow chart is traversed and analyzed to realize thestatic scanning of the source code, and the analysis process is complex and the efficiency is low is solved.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a static source code scanning method, device, computer equipment and storage medium. Background technique [0002] Static source code scanning is one of the software application security solutions mentioned by people in recent years. Defects in the code to ensure software quality. [0003] At present, in related technologies, when statically scanning the source code, the source code is converted into a control flow graph in various ways, and then various algorithms are used to traverse and analyze the control flow graph to detect defects in the source code. In this static scanning method, the analysis process is complicated, and corresponding traversal programs need to be written for different analysis targets, which is inefficient. Contents of the invention [0004] This application aims to solve one of the technical problems in the related art at least...

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): G06F21/56
CPCG06F21/563
Inventor 张全李彦成彭云鹏
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More