Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for extracting virtual table function list in dynamic link library

A dynamic link library and function list technology, applied in the computer field, can solve the problems of batching virtual table function lists without tools, unable to program analysis, etc., to save work time and improve work efficiency.

Pending Publication Date: 2020-05-08
成都无糖信息技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] At present, due to the C++ mechanism of dynamic link libraries and executable programs developed based on C++, there is no tool that can export the list of virtual table functions in the program in batches, and it is impossible to directly analyze the compiled program.

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 extracting virtual table function list in dynamic link library
  • Method for extracting virtual table function list in dynamic link library
  • Method for extracting virtual table function list in dynamic link library

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0021] Such as figure 1 Shown, the present invention is by RTTICompleteObjectLocator (RTTI structure object locator), RTTITypeDescriptor (RTTI type descriptor), RTTIBaseClassDescriptor (RTTI base class descriptor), RTTIClassHierarchyDescriptor (RTTI class hierarchy descriptor), four parts are carried out to the RTTI structure of program parse. Then use the method of creating a structure for the parsed results to achieve a unified format.

[0022] RTTI (run-time type identification) can obtain the actual type information of the pointed object through the pointer or reference of the base class. In C++, the type information provided by RTTI can be obtained and operated through typeid or dynamic_cast. In reverse engineering, the information provided by RTTI is very helpful for understanding each class and its inheritance relationship. The msvc compiler places a structure pointer in front of the virtual table of each class, called Complete Object Location (COL). Using this struct...

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 method for extracting a virtual table function list in a dynamic link library. The method specifically comprises the following steps: positioning a target function in an RTTIstructure and extracting type information provided by RTTI; analyzing the acquired RTTI structure type information is analyzed, after the structure body, any required fields and information can be accessed in a structured mode, the required fields and information include the virtual table and the type name of the virtual table, and finally performing formatted output. Starting from an implementation mechanism of the virtual table, the data of the program are searched, so that the method capable of exporting the program virtual table functions in batches is provided. Based on the method, a tester can quickly obtain the virtual table function in the program to carry out the next step of work, so that the working time is greatly saved, and the working efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method for extracting a virtual table function list in a dynamic link library. Background technique [0002] Dynamic linking provides a way for a process to call functions that are not part of its executable code. The executable code for a function resides in a DLL file that contains one or more functions that are compiled, linked, and stored separately from the process that uses them. DLLs also help in sharing data and resources. Multiple applications can simultaneously access the contents of a single copy of a DLL in memory. [0003] Using dynamic link libraries makes it easier to apply updates to individual modules without affecting other parts of the program. For example, for a large-scale online game, if you put the entire hundreds of MB or even several GB of game code in one application program, the future modification work will be very time-consuming, and if you put...

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): G06F9/445G06F8/41
CPCG06F9/44521G06F8/434
Inventor 童永鳌李政博张瑞冬
Owner 成都无糖信息技术有限公司