Code correction method and device and intelligent analysis system
The invention provides a code correction method, a code correction device and an intelligent analysis system. The method comprises the following steps: analyzing a source code and converting the source code into a syntax tree; performing pre-analysis according to the code blacklist and the syntax tr...
Gespeichert in:
Hauptverfasser: | , , , , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a code correction method, a code correction device and an intelligent analysis system. The method comprises the following steps: analyzing a source code and converting the source code into a syntax tree; performing pre-analysis according to the code blacklist and the syntax tree to obtain a first analysis result; inputting the first analysis result, the syntax tree and the source code into a code correction model to obtain a first correction code under the condition that the first analysis result is that the vulnerability exists; under the condition that the first analysis result is that no vulnerability exists, control flow analysis is performed on the control flow to obtain a second analysis result, and data flow analysis is performed on the data flow to obtain a third analysis result; performing simulation analysis on the source code in a simulation environment to obtain a fourth analysis result; and inputting the second analysis result, the third analysis result, the fourth analysis |
---|