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

Code defect detection method

A code defect and detection method technology, applied in the field of software testing, to reduce complexity, avoid adverse effects, and improve coverage

Pending Publication Date: 2022-02-18
北京京航计算通讯研究所
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Existing methods are generally based on networks such as CNN or LSTM, which are more effective than rule-based methods, but there is still room for improvement in the accuracy of defect detection, false positives and false negatives

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
  • Code defect detection method
  • Code defect detection method
  • Code defect detection method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] The preferred embodiments of the present invention are specifically described below with reference to the accompanying drawings, wherein the accompanying drawings constitute a part of the present application, and together with the embodiments of the present invention, are used to explain the principles of the present invention, but are not used to limit the scope of the present invention.

[0054] A specific embodiment of the present invention discloses a code defect detection method. The flowchart is as follows figure 1 shown, including the following steps:

[0055] Step S1: Perform slicing processing on the code to be identified according to the preset slicing criterion to obtain a code segment to be detected.

[0056] Step S2: Input the slice code segment to be detected into a preset code defect detection model, and use the output result of the preset code defect detection model as a code defect detection result; wherein, the preset code defect detection model The s...

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 discloses a code defect detection method, which belongs to the technical field of software testing, and can improve the code defect detection accuracy. The method comprises the following steps of slicing a to-be-identified code according to a preset slicing criterion to obtain a to-be-detected slice code segment, inputting the to-be-detected slice code segment to a preset code defect detection model, and taking an output result of the preset code defect detection model as a code defect detection result, wherein the preset code defect detection model is a network model obtained by performing segmented learning on a statement semantic vector and a statement type vector in each slice code segment in a training stage.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a code defect detection method. Background technique [0002] Code analysis and software testing are the main means of checking and discovering security flaws and exploits in software codes, and have always been research hotspots in the field of information security and software security. However, with the increasing complexity and scale of safety-critical and sensitive systems, as well as the frequent occurrence of software defects and the continuous increase of hacker attack methods, the difficulty of software defect detection is also increasing. Traditional code defect detection methods are difficult to balance high detection capability and detection efficiency, and cannot meet the needs of shortening software maintenance cycles and improving software quality and reliability. [0003] Existing code defect detection methods mainly include defect detection based on lex...

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): G06F11/36G06N3/04G06N3/08
CPCG06F11/3608G06N3/08G06N3/045
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