Source code scanning method, device, electronic equipment and storage medium

The embodiment of the invention discloses a source code scanning method, a device, electronic equipment and a storage medium. According to the embodiment of the invention, the method comprises the steps of obtaining a source code , wherein the source code comprises a target function; performing equi...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: QIAN WENXIANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention discloses a source code scanning method, a device, electronic equipment and a storage medium. According to the embodiment of the invention, the method comprises the steps of obtaining a source code , wherein the source code comprises a target function; performing equivalent conversion processing on the target function to obtain at least one conversion function corresponding to the target function; performing substitution processing on a target function in the source code by adopting a conversion function to obtain a substitution code; constructing an abstract syntax tree based on the replacement code; and performing defect scanning on the abstract syntax tree based on a preset defect detection rule to obtain a scanning result of defects in the source code. In the embodiment of the invention, the unknown or difficult-to-process target function in the source code is replaced with the conversion function which is equivalent to the target function, known and convenient to scan, so