Sensitive area-oriented embedded software test case generating method

A technology of test case generation and embedded software, which is applied in the field of embedded software test case generation, can solve problems such as low solution accuracy, huge constraint conditions, and weak analysis ability, achieve high analysis efficiency, reduce the number of constraints, and limit the constraints The effect of simplification

Inactive Publication Date: 2014-04-09
HANGZHOU DIANZI UNIV
View PDF0 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the binary code is the final embodiment of the software, the software release will inevitably have a binary executable program, even if it is released as a source code, it can be compiled into a binary executable program, which has a wide range of practicability. The disadvantage is that the binary program lacks a low-level structure. information
Binary analysis tools such as Rose also provide the function of static analysis of binary code, but its analysis ability is weak, and there are big problems in accuracy.
[0010] However, both of these two analysis techniques have certain limitations, which are mainly reflected in: the static analysis technique only analyzes the structure of the program, and does not actually run the program, so the collected constraints cannot fully match the entire path. coverage; although the dynamic analysis technology can collect more comprehensive constraints, but because the collected constraints are not further processed, the collected constraints are too large, resulting in excessive constraint solving overhead and low solution accuracy. Insufficient high

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
  • Sensitive area-oriented embedded software test case generating method
  • Sensitive area-oriented embedded software test case generating method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Considering the technology used for code analysis security, combined with the currently widely used static analysis technology and dynamic analysis technology, using the existing advantages of these two technologies, statically analyze the program structure, then dynamically execute the program and collect path constraint solutions, the specific Implementation consists of the following steps:

[0023] Step 1) Analyze the binary file, convert the assembly language generated by the disassembly technology into an intermediate language, and perform instrumentation processing on the conversion result to obtain an instrumentation program.

[0024] Step 2) Use the obtained instrumentation program to analyze the sensitive area and determine the tainted data.

[0025] Step 3) Use the seed test case to dynamically execute the program, monitor the input symbol variables during the running process, collect the branch path constraints, and invert and output the currently collected c...

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 sensitive area-oriented embedded software test case generating method. The sensitive area-oriented embedded software test case generating method comprises the steps that firstly, binary files are analyzed, intermediary language transformation is conducted on an assembly language generated by the disassembling technology, and instrumentation is conducted on transformation results so as to obtain an instrumentation procedure; secondly, the instrumentation procedure is used for analyzing a sensitive area so as to determine taint data; thirdly, a seed test case dynamic execution procedure is used for collecting branch path constraint conditions, and when a branch jump occurs, constraint sets collected at present are reversed and output; finally, whether each constraint in the collected constraint sets comprises taints is analyzed, processing is carried out, the simplified constraint sets are sent into a constraint solver and are solved, and obtained final results are test cases which can generate input controllable branch paths covering the taint data. Compared with the single static analysis technology or the single dynamic analysis technology, the sensitive area-oriented embedded software test case generating method has higher analysis efficiency.

Description

technical field [0001] The invention belongs to the technical field of software testing, and relates to a method for generating embedded software test cases for sensitive areas. Background technique [0002] Nowadays, embedded software has a huge market share in all walks of life. Medicine, education, banking, military, computer and other fields are deeply affected by embedded systems. However, due to the limited memory capacity of embedded software, high real-time requirements , Strong specificity, poor inheritance and other characteristics make embedded software largely limited in terms of space and time resources under limited conditions. At the same time, because embedded software has relatively high requirements for reliability and security, Therefore, higher requirements are put forward for embedded defect detection. It has become a hot field of embedded software research to carry out security detection for embedded software, find out the loopholes in the software in ...

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
Inventor 方景龙程攀万季王兴起王大全
Owner HANGZHOU DIANZI UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products