Software analysis method and system based on dynamic instrumentation

A software analysis and dynamic instrumentation technology, applied in software testing/debugging, instrumentation, electrical digital data processing, etc.
CN112559322APending Publication Date: 2021-03-26STATE GRID CORP OF CHINA +4

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
STATE GRID CORP OF CHINA
Publication Date
2021-03-26

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a software analysis method and system based on dynamic instrumentation. The method comprises the steps of obtaining test sample data and a to-be-tested program; performing structural analysis and machine code translation on the to-be-tested program to obtain an instruction sequence, determining at least one breakpoint according to the granularity of a basic block in the instruction sequence, and determining an instrumentation instruction corresponding to each breakpoint; taking the test sample data as input data of the to-be-tested program, executing the to-be-tested program, monitoring breakpoints in the to-be-tested program, and obtaining and storing execution path information and crash information; determining a coverage rate of the basic block according to the execution path information, determining a crash sample according to the crash information, screening according to different execution paths corresponding to the crash sample, and determining a unique crash sample; and determining a security evaluation result of the to-be-tested program according to the coverage rate of the basic block and the number of the unique crash samples.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of security analysis of smart electric energy meter software, and more specifically, to a software analysis method and system based on dynamic instrumentation. Background technique

[0002] The electric energy meter is a device for measuring the electric energy output or load consumption in the circuit. It is widely used in the power supply network and is the most important measuring device in the electricity trade settlement. With the application and popularization of smart energy meters, the functional complexity and development difficulty of energy meter equipment are constantly increasing. If there is a software defect in the electric energy meter, it will be used by individuals to "steal electricity", and it will lead to the collapse of large-scale electric energy meters, resulting in the loss of manpower and material resources of the power grid company. Therefore, the security analysis of the ...

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