Program modification method and device

A program modification and target program technology, which is applied in the field of data processing, can solve problems such as interception, program errors, time-consuming and labor-consuming, and achieve the effect of improving efficiency and reducing error rates

Active Publication Date: 2021-02-02
WUHAN DOUYU NETWORK TECH CO LTD
View PDF20 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When these programs run in a higher-digit (such as 64-bit) system, the system will allocate a higher-digit (such as 64-bit) memory address, then the program will generate an error, resulting in data interception, causing the high-order data to be lost. resulting in a memory access exception
At this time, it is necessary to modify the data in the program file. For a program file with a lot of program code and a large magnitude, if you manually modify all the memory access codes in the code, it will be very time-consuming and labor-intensive, and manual modification is easy. Mistakes generate modification errors that affect the normal operation of the 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
  • Program modification method and device
  • Program modification method and device
  • Program modification method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0041] Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art wi...

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 present invention provides a program modification method and device, the method comprising: executing a preset program modification script to obtain a target program file; searching the target program file defined as A target pointer in the first expression form of a preset number of digits, wherein the preset number of digits is smaller than the actual number of digits assigned to the target pointer by the target operating system when the target program is executed by the target operating system; The representation of the target pointer is replaced with a second representation that supports the target operating system. In this way, the automatic modification of the target program file is realized, the efficiency of program modification is improved, and the error rate of program modification is reduced.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and device for modifying a program. Background technique [0002] With the development of electronic terminal hardware technology, the capability of CPU processors is getting stronger and stronger, and CPUs with higher numbers of digits are more widely used in electronic devices. However, for some applications developed with a lower-digit (such as 32-bit) system as the standard, the code in it is solidified that storing a memory address is a lower-digit number (such as 32-bit), and allocates memory address space When , the allocated memory address is also a lower number of digits (such as 32 bits). When these programs run in a higher-digit (such as 64-bit) system, the system will allocate a higher-digit (such as 64-bit) memory address, then the program will generate an error, resulting in data interception, causing the high-order data to be lost. This results i...

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 Patents(China)
IPC IPC(8): G06F8/654
CPCG06F8/654
Inventor 周志刚陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
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