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

Program processing methods and devices

A program processing and program technology, applied in the field of program processing methods and devices, can solve problems such as low efficiency of program debugging

Active Publication Date: 2017-02-22
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a program processing method and device to at least solve the technical problem of the related art that needs to re-scan the function address every time when hooking the function in the program, resulting in low program debugging efficiency

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
  • Program processing methods and devices
  • Program processing methods and devices
  • Program processing methods and devices

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] According to an embodiment of the present invention, a method embodiment of a program processing method is provided.

[0030] Optionally, in this embodiment, the above program processing method can be applied to figure 1 In the hardware environment constituted by the server 102 and the terminal 104 as shown. Such as figure 1 As shown, the server 102 is connected to the terminal 104 through a network. The above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 104 is not limited to a PC, a mobile phone, a tablet computer, and the like. The program processing method in the embodiment of the present invention may be executed by the server 102, may also be executed by the terminal 104, and may also be executed jointly by the server 102 and the terminal 104. Wherein, the program processing method of the embodiment of the present invention executed by the terminal 104 may also be executed by...

Embodiment 2

[0093] According to an embodiment of the present invention, a program processing device for implementing the above program processing method is also provided. Figure 7 is a schematic diagram of an optional program processing device according to an embodiment of the present invention, such as Figure 7 As shown, the device may include:

[0094] The obtaining unit 22 is used to obtain the first function from the running program, wherein the first function is a function to be processed in the program; the first extraction unit 24 is used to extract the first function feature from the first function code, wherein the first function signature is used to uniquely identify the first function; the first positioning unit 26 is used to utilize the first function signature to locate the first entry address, wherein the first entry address is the first function in the program The entry address; and the first modification unit 28, used to modify the first entry address to the second entr...

Embodiment 3

[0114] According to an embodiment of the present invention, a server or terminal for implementing the above method for program processing is also provided.

[0115] Figure 13 is a structural block diagram of a terminal according to an embodiment of the present invention, such as Figure 13 As shown, the terminal may include: one or more (only one is shown in the figure) processor 201, memory 203, and transmission device 205 (such as the sending device in the above-mentioned embodiment), such as Figure 13 As shown, the terminal may also include an input and output device 207 .

[0116] Wherein, the memory 203 can be used to store software programs and modules, such as the program instructions / modules corresponding to the program processing method and device in the embodiment of the present invention, and the processor 201 executes various software programs and modules stored in the memory 203 by running the software programs and modules. A functional application and data pr...

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 program processing method and apparatus, wherein the method comprises: A first function is obtained from a running program, wherein the first function is a function to be processed in the program. A first function signature is extracted from the first function, wherein the first functional feature code for uniquely identifying a first function. A first entry address is located using a first function signature, wherein the first entry address is an entry address of the first function in the program, and in the case of positioning to the first entry address, the first entry address is modified to a second entry address to perform a second function, wherein the second entry address is the entry address of the second function. The program processing method and apparatus solve the technical problem that the related technology needs to re-scan the function address every time the function in the program is hooked, leading to the low efficiency of the program debugging.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a program processing method and device. Background technique [0002] The Detours tool library developed by Microsoft can be used to implement hooking of functions in running binary programs. Using the Detours tool library, you can hook through the public function name, or you can hook through the function address. However, when the Detours tool library hooks a function in a running binary program, it needs to directly provide the function name of the function or provide the address of the function. However, usually when debugging a program that has been compiled into binary code, the function name information has been lost, and the function name of the function cannot be known, and the address of the function can only be found through other debugging methods. However, the program is constantly updated. After the program is updated, the address of the function is moved due to t...

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): G06F9/445
CPCG06F8/656G06F9/44505
Inventor 吴文青毕研涛
Owner TENCENT TECH (SHENZHEN) CO LTD
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