Unlock instant, AI-driven research and patent intelligence for your innovation.

Software source code defect detection method and device

A defect detection and code defect technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of poor accuracy of detection results and low detection efficiency, and achieve the effect of improving efficiency and reducing impact

Active Publication Date: 2022-07-19
北京北大软件工程股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to overcome at least to a certain extent the problems of low detection efficiency and poor accuracy of detection results in software code detection methods based on deep neural networks in related technologies, this application provides a software source code defect detection method and device

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
  • Software source code defect detection method and device
  • Software source code defect detection method and device
  • Software source code defect detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described in detail below. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the examples in this application, all other implementations obtained by those of ordinary skill in the art without creative work fall within the scope of protection of this application.

[0058] figure 1 A flowchart of a software source code defect detection method provided by an embodiment of the present application, such as figure 1 As shown, the software source code defect detection method includes:

[0059] S11: Obtain the source software code;

[0060] S12: construct a code attribute diagram according to the source software code;

[0061] S13: Input the code attribute graph into a preset source code defect detection model based on a graph...

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 present application relates to a software source code defect detection method and device. The software source code defect detection method includes acquiring source software code, constructing a code attribute graph according to the source software code, and inputting the code attribute graph into a preset source code defect based on a graph neural network. In the detection model, a source code defect detection model based on a graph neural network is preset to generate an adaptive receiving path, and output the detection result according to the adaptive receiving path, which can reduce the influence of irrelevant code information and improve the efficiency of code vulnerability detection.

Description

technical field [0001] The present application belongs to the technical field of software testing, and in particular relates to a method and device for detecting defects in software source codes. Background technique [0002] Due to the large increase of software users and the increasingly rich software functions, the complexity of the software increases sharply, which inevitably increases the security risk of the software system. However, detecting vulnerabilities can be challenging even for developers with specialized security expertise. Therefore, automatic detection of vulnerabilities in source code has attracted great research attention. Traditional software code detection methods such as static analysis, dynamic analysis, symbolic execution and other traditional techniques rely on expert knowledge, have high labor costs and a high false alarm rate, and are not satisfactory in actual production. In related technologies, the feature mining and representation capabiliti...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 叶蔚段富尧谢睿张世琨
Owner 北京北大软件工程股份有限公司