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

Software source code defect detection method and device

A defect detection and code defect technology, applied in the field of software source code defect detection, can solve problems such as low detection efficiency and poor detection result accuracy, and achieve the effect of improving efficiency and reducing impact

Active Publication Date: 2022-04-22
北京北大软件工程股份有限公司
View PDF3 Cites 1 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 purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be described in detail below. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in the present application, all other implementation manners obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present 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 graph according to the source software code;

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

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 relates to a software source code defect detection method and device, and the method comprises the steps: obtaining a source software code, constructing a code attribute graph according to the source software code, inputting the code attribute graph into a preset source code defect detection model based on a graph neural network, the source code defect detection model based on the graph neural network is preset to be used for generating the self-adaptive receiving path, and the detection result is output according to the self-adaptive receiving path, so that the influence of irrelevant code information can be reduced, and the code vulnerability detection efficiency can be improved.

Description

technical field [0001] The application belongs to the technical field of software testing, and in particular relates to a software source code defect detection method and device. Background technique [0002] Due to the large increase in software users and the increasingly rich software functions, the complexity of software has increased dramatically, which inevitably increases the security risks of software systems. However, detecting vulnerabilities can be challenging even for developers with dedicated security expertise. Therefore, the 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 technologies rely on expert knowledge, high labor costs and high false alarm rate, which are not satisfactory in actual production. In related technologies, feature mining and representation capabilities based on deep ne...

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