Supercharge Your Innovation With Domain-Expert AI Agents!

Method for refining static defect detection on basis of state partitions

A defect detection and attribute state partitioning technology, applied in the field of detection refinement, can solve the problems of false positives, no distinction, loss of path information, etc., and achieve the effect of improving analysis accuracy, reducing accuracy loss, and avoiding accuracy loss.

Active Publication Date: 2014-07-16
BEIJING UNIV OF POSTS & TELECOMM
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The path-sensitive detection method based on data flow analysis considers the combination relationship between program path branches, and can record different path information on the control flow graph, thereby effectively reducing false positives during static analysis. The accurate path-sensitive analysis method will record the program. All path information will lead to path explosion when there are many control flow branches or loops, so that it cannot be analyzed. Therefore, practical path-sensitive analysis methods

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
  • Method for refining static defect detection on basis of state partitions
  • Method for refining static defect detection on basis of state partitions
  • Method for refining static defect detection on basis of state partitions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0025] First, a defect pattern is a description of a program property that, if violated, causes a defect. For example, the requested resources must be released after use, otherwise resource leakage defects will be caused, and the defect mode can be represented by a defect state machine, where the state machine is a commonly used and easy-to-understand abstract representation of program semantics, and the defect mode The state machine is used to describe the finite state machine of the defect mode, including the state set D, the state transition set T, and the transition condition set Conditions, where D={$start,$error}∪Dother, T: D×Conditions→D.$start and $error represent the initial state and error state respectively, and Dother represents the collection of other intermediate states.

[0026] Furthermore, the use of array subscripts must be within the ...

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 method for refining static defect detection on the basis of state partitions. The method includes S1, placing sets of to-be-detected defect mode property state machines in to-be-detected function control flow inlets; S2, executing programs from front locations to target locations via paths; S3, transmitting states of the property state machines along the paths of the programs, changing the states of the property state machines and enabling the property state machines to be in preset states at the target locations; S4, acquiring current control flow nodes and judging whether the current control flow nodes are final control flow nodes or not; S5, updating property state conditions and information of the sets of the property state partitions according to information of the current nodes if the current nodes are not the final control flow nodes. The method for refining static defect detection on the basis of a technology of the state partitions has the advantages that defect modes, the defect mode state machines, path conditions, the state conditions and the state partitions are defined, the method for refining defect detection is provided on the basis of the technology of the state partitions, and accordingly the defect detection precision can be improved.

Description

technical field [0001] The invention relates to a detection and refinement technology in static defect detection of computer software, in particular to a state partition-based static defect detection and refinement method. Background technique [0002] Flaws in code are a significant cause of software failures and security breaches. Defect-based software testing technology can be divided into dynamic detection technology and static detection technology. [0003] Among them, static detection technology does not run the program under test, and mainly uses various static analysis methods to find defects in the program. From the perspective of computability theory, static analysis is an undecidable problem. The undecidability of static analysis is actually This means that any automated static analysis system cannot be both reliable and complete for non-trivial properties of a program, such as whether there are runtime errors. Reliable static analysis means that if the analysis...

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/36
Inventor 金大海张大林宫云战王雅文黄俊飞
Owner BEIJING UNIV OF POSTS & TELECOMM
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More