CN105573788A - Patch processing method and device as well as patch generation method and device - Google Patents

Patch processing method and device as well as patch generation method and device Download PDF

Info

Publication number
CN105573788A
CN105573788A CN201510934339.3A CN201510934339A CN105573788A CN 105573788 A CN105573788 A CN 105573788A CN 201510934339 A CN201510934339 A CN 201510934339A CN 105573788 A CN105573788 A CN 105573788A
Authority
CN
China
Prior art keywords
function
address
instruction
intermediate code
patch file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510934339.3A
Other languages
Chinese (zh)
Other versions
CN105573788B (en
Inventor
赵干
谢江帆
周淼苗
庞立祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510934339.3A priority Critical patent/CN105573788B/en
Publication of CN105573788A publication Critical patent/CN105573788A/en
Application granted granted Critical
Publication of CN105573788B publication Critical patent/CN105573788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

An embodiment of the invention discloses a patch processing method. The method comprises the steps of when a first call instruction in a first function is executed, skipping to a second function; when a first instruction of the second function is executed, skipping to an intermediate code of a patch file; according to an instruction of the intermediate code, storing a table address of the first function and a return address of the first call instruction to a reserved space of the patch file; when a second call instruction in the intermediate code is executed, skipping to a third function used for updating the second function in the patch file; when the execution of the third function is finished, returning the intermediate code according to a return address of the second call instruction; according to the instruction of the intermediate code, recovering the table address of the first function and the return address of the first call instruction from the reserved space; and according to the return address of the first call instruction, returning the first function. In addition, embodiments of the invention provide a patch processing device as well as a patch generation method and device.

Description

The method and apparatus of patch process and the method and apparatus of generation patch
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and apparatus of patch process and a kind of method and apparatus generating patch file.
Background technology
At present, in order to repair procedure leak or renewal business function, various electronic equipment can be upgraded existing software by the mode of patch.Such as, in various communication network, the network equipment passes through the mode of patch to the renewal of existing software, can upgrade the communication service function of self.Be understandable that, in many cases, the renewal of software needs to carry out when interrupt software does not run.Based on this, online patching technology arises at the historic moment.
Online patching technology carries out patch to software in units of function.Shown in Fig. 1 is a kind of existing online patching technology.Wherein, need the original function upgraded to be the second function in software, in software, the second function is the allocating object of the first function, and includes the 3rd function for upgrading the second function in patch file, and namely the 3rd function is patch function.For running the equipment having this software, utilizing after patch file carries out patch to software, the instruction of calling the second function is responded in the process of execution first function, the Article 1 instruction of the second function indicates this equipment redirect to remove the 3rd function called in patch file, turns back to the first function again and perform subsequent instructions after executing the 3rd function.Visible, in the process of equipment operating software, the execution of the 3rd function instead of the execution of the second function, and the renewal of software is achieved.
It should be noted that, online patching technology is applied in the scene that running software can not interrupt usually.Such as, for the network equipment of communication network, its communication service needs to be carried by operating software, and the communication service of the network equipment can not be interrupted, and therefore, the software upgrading of the network equipment needs to adopt online patching technology.But inventor finds through research, adopt after existing online patching technology carries out patch renewal to software, the operation of software is but usually interrupted because of exception, mistake or fault.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of method and apparatus of patch process and a kind of method and apparatus generating patch file are provided, the technical matters of interrupting easily occurs with the operation solving software after online patch completes in prior art.
First aspect, embodiments provide a kind of patch disposal route, described method comprises:
In response to execution to the first call instruction in the first function, jump to the second function;
In response to the Article 1 instruction performing described second function, jump to the intermediate code of patch file;
According to the instruction of described intermediate code, the return address of the table address of described first function and described first call instruction is saved in the headspace of described patch file, the table address of described first function is the address of the list structure of described first function, and the list structure of described first function is for recording the address of the allocating object of described first function;
In response to execution to the second call instruction in described intermediate code, jump to the 3rd function of described patch file, described 3rd function is used for upgrading described second function;
In response to the execution completing described 3rd function, according to the return address of described second call instruction, return described intermediate code;
According to the instruction of described intermediate code, from described headspace, recover the table address of described first function and the return address of described first call instruction;
According to the return address of described first call instruction, return described first function.
Optionally, described method also comprises:
Obtain described patch file, and obtain the address of described second function according to described patch file;
According to the address of described second function, in described second function, add the instruction for jumping to described intermediate code, as the Article 1 instruction of described second function.
Optionally, described method also comprises:
Return described first function in response to described, whether the execution of monitoring described first function breaks down;
When the execution monitoring described first function is broken down, delete in described second function for jumping to the Article 1 instruction of described intermediate code.
Second aspect, embodiments provide a kind of method generating patch file, described method comprises:
Obtain the patch file of OBJ form, and generate the patch file of PAT form according to the patch file of described OBJ form;
Wherein, the patch file of described PAT form comprises the 3rd function, intermediate code and headspace;
Described 3rd function is used for upgrading the second function, and described second function is the allocating object of the first function;
Described intermediate code is used for preserving the table address of described first function and returning an address to described headspace and recovering the table address of described first function and the return address of described first call instruction when described 3rd function returns described intermediate code from described headspace of described first call instruction when described second function jumps to described intermediate code, the table address of described first function is the address of the list structure of described first function, the list structure of described first function is for recording the address of the allocating object of described first function, described first call instruction is for calling the instruction of described second function in described first function,
Described headspace is used for calling in the process of described 3rd function in described intermediate code storing the table address of described first function and the return address of described first call instruction.
Optionally, the described patch file according to described OBJ form generates the patch file of PAT form, comprising:
The patch file of described OBJ form is carried out to the reorientation of described 3rd function, and add described headspace in the patch file of described OBJ form.
The third aspect, embodiments provide a kind of patch treatment facility, described equipment comprises:
First jump-transfer unit, in response to performing to the first call instruction in the first function, jumps to the second function;
Second jump-transfer unit, in response to the Article 1 instruction performing described second function, jumps to the intermediate code of patch file;
Storage unit, for the instruction according to described intermediate code, the return address of the table address of described first function and described first call instruction is saved in the headspace of described patch file, the table address of described first function is the address of the list structure of described first function, and the list structure of described first function is for recording the address of the allocating object of described first function;
3rd jump-transfer unit, in response to performing to the second call instruction in described intermediate code, jumps to the 3rd function of described patch file, and described 3rd function is used for upgrading described second function;
First returns unit, in response to the execution completing described 3rd function, according to the return address of described second call instruction, returns described intermediate code;
Recovery unit, for the instruction according to described intermediate code, recovers the table address of described first function and the return address of described first call instruction from described headspace;
Second returns unit, for the return address according to described first call instruction, returns described first function.
Optionally, described equipment also comprises:
First acquiring unit, for obtaining described patch file;
Second acquisition unit, for obtaining the address of described second function according to described patch file;
Adding device, for the address according to described second function, adds the instruction for jumping to described intermediate code, as the Article 1 instruction of described second function in described second function.
Optionally, described equipment also comprises:
Monitoring means, for returning described first function in response to described, whether the execution of monitoring described first function breaks down;
Delete cells, during for breaking down when the execution monitoring described first function, deletes in described second function for jumping to the Article 1 instruction of described intermediate code.
Fourth aspect, embodiments provide a kind of equipment generating patch file, described equipment comprises:
Acquiring unit, for obtaining the patch file of OBJ form;
Generation unit, for generating the patch file of PAT form according to the patch file of described OBJ form;
Wherein, the patch file of described PAT form comprises the 3rd function, intermediate code and headspace;
Described 3rd function is used for upgrading the second function, and described second function is the allocating object of the first function;
Described intermediate code is used for preserving the table address of described first function and returning an address to described headspace and recovering the table address of described first function and the return address of described first call instruction when described 3rd function returns described intermediate code from described headspace of described first call instruction when described second function jumps to described intermediate code, the table address of described first function is the address of the list structure of described first function, the list structure of described first function is for recording the address of the allocating object of described first function, described first call instruction is for calling the instruction of described second function in described first function,
Described headspace is used for calling in the process of described 3rd function in described intermediate code storing the table address of described first function and the return address of described first call instruction.
Optionally, described generation unit comprises:
Reorientation subelement, for carrying out the reorientation of described 3rd function to the patch file of described OBJ form;
Add subelement, for adding described headspace in the patch file of described OBJ form.
Compared with prior art, the embodiment of the present invention at least has the following advantages:
In the technical scheme of the embodiment of the present invention, include headspace, intermediate code and the 3rd function in patch file, wherein, the 3rd function is used for upgrading the second function, and the second function is the allocating object of the first function.After this patch file is loaded into software, in the process of running software, the second function is jumped to when performing in the first function for calling the first call instruction of the second function, and under the Article 1 instruction of the second function, jump to the intermediate code of patch file, then, according to the instruction of intermediate code, preserve the table address of the first function and the headspace returning an address to patch file of the first call instruction, the 3rd function is jumped to when performing in intermediate code for calling the second call instruction of the 3rd function, described intermediate code is returned according to the return address of the second call instruction when completing the execution of the 3rd function, then, the table address of the first function and the return address of the first call instruction is recovered from headspace according to the instruction of intermediate code, the first function is returned again according to the return address of the first call instruction.As can be seen here, in the intermediate code of patch file, for jump to the 3rd function the second call instruction before there is the instruction of the table address for preserving the first function and the instruction for the return address of preserving the first call instruction, there is after second call instruction the instruction of the table address for recovering the first function and the instruction for the return address of preserving the first call instruction, further, also there is at patch file the headspace of the return address of table address for preserving the first function and the first call instruction.Therefore, on the one hand, the table address of the first function lost when intermediate code calls the 3rd function, can recover from headspace executing before the 3rd function returns the first function, therefore, after returning the first function, the address of allocating object can be searched from the list structure of the first function according to the table address recovered in the process of execution first function, thus the allocating object avoided from the first function cannot be found when performing the first function again after the 3rd function returns the first function, the operation avoiding software is broken down, decrease the situation that interrupting appears in running software, on the other hand, although the return address of the first call instruction has been replaced by the return address of the second call instruction when intermediate code calls the 3rd function, but executing the return address can recovering the first call instruction before the 3rd function returns the first function from headspace, the first function can be returned according to the return address of the first call instruction recovered, thus avoid the execution that cannot return the first function continuation subsequent instructions after the 3rd function executes, the operation avoiding software is broken down, and decreases the situation that interrupting appears in running software, again on the one hand, headspace is reserved to preserve the table address of the first function and the return address of the first call instruction in patch file, the table address preserved and return address can not take stack frame structure, thus ensure that calling of the 3rd function has identical stack frame structure with calling of the second function, avoid stack frame structure and change the acquisition of information mistake caused, and then avoid the running software that acquisition of information mistake causes and interrupt.As can be seen here, by the embodiment of the present invention, after patch file upgrades software, the many factors causing software interruption to be run are avoided, and therefore, the possibility that running software interrupts reduces greatly.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is patch processing mode of the prior art;
Fig. 2 is the schematic flow sheet of a kind of patch disposal route in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of equipment run time version instruction in the embodiment of the present invention;
Fig. 4 is the treatment scheme schematic diagram of a kind of patch file in the embodiment of the present invention;
Fig. 5 is a kind of schematic flow sheet generating the method for patch file in the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of patch treatment facility in the embodiment of the present invention;
Fig. 7 is a kind of structural representation generating the equipment of patch file in the embodiment of the present invention.
Embodiment
Scheme in the present invention is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.
Inventor finds through research, in the prior art shown in Fig. 1, in the process of execution first function, in order to complete the call instruction of the first function to each allocating object, need the address of each allocating object being searched the first function by the list structure of the first function.And the list structure of the first function needs to be searched by the table address of the first function.But, when first function call the second function, under the Article 1 instruction of the second function, equipment can jump to the 3rd function in patch file, in the implementation of the 3rd function, the table address of the first function can be lost, therefore, when the 3rd function execute return the first function time, in the implementation of the first function subsequent instructions, the list structure of the first function cannot find, first function subsequent instructions also just cannot realize calling allocating object, therefore, the operation of software will be broken down, thus causes the operation of software to occur interrupting.
In order to solve the problems referred to above of prior art, in embodiments of the present invention, patch file comprises the 3rd function, intermediate code and headspace, wherein, in intermediate code, for jump to the 3rd function the second call instruction before there is the instruction of the table address for preserving the first function and the instruction for the return address of preserving the first call instruction, there is after second call instruction the instruction of the table address for recovering the first function and the instruction for the return address of preserving the first call instruction, and, headspace is for the return address of the table address and the first call instruction of preserving the first function.Therefore, the table address of the first function lost when intermediate code calls the 3rd function, can recover from headspace executing before the 3rd function returns the first function, therefore, after returning the first function, in the process of execution first function subsequent instructions, the list structure of the first function can be searched, and the first function subsequent instructions also just can realize calling allocating object, thus the operation avoiding software is broken down, decrease the situation that interrupting appears in running software.In addition, although the return address of the first call instruction has been replaced by the return address of the second call instruction when intermediate code calls the 3rd function, but executing the return address that can recover the first call instruction before the 3rd function returns the first function from headspace and returning the first function accordingly, thus the operation avoiding software is broken down, decrease the situation that interrupting appears in running software.Again in addition, the table address of the first function and the return address of the first call instruction are kept in the headspace reserved in patch file, the table address preserved and return address can not change stack frame structure, thus avoid stack frame structure and change the acquisition of information mistake caused, and then avoid the running software that acquisition of information mistake causes and interrupt.As can be seen here, by the embodiment of the present invention, after patch file upgrades software, the many factors causing software interruption to be run are avoided, and therefore, the possibility that running software interrupts reduces greatly.
Below in conjunction with accompanying drawing, described in detail the implementation of the method, relevant device and the system that start the operating system in the present invention by embodiment.
See Fig. 2, show the schematic flow sheet of a kind of patch disposal route in the embodiment of the present invention.In the present embodiment, described method can be applied to the equipment of operating software, and described software is the software needing patch process, and described equipment can be such as communication facilities.The method such as specifically can comprise the steps:
S201, in response to execution to the first call instruction in the first function, jump to the second function.
Wherein, described first function can be the function of the process creation of software, as principal function.Second function described in described second by described first function call, also, can include the first call instruction for calling described second function in the instruction of described first function.Be understandable that, described second function is the function that software had had before loading patch file, and also, described second function is the original function of the non-patch of software.In the present embodiment, described patch process can be the update process of carrying out described second function.
When the process of equipment operating software, described equipment performs each instruction of described first function successively according to the instruction sequences of described first function.When performing in described first function for calling the first call instruction of described second function, described equipment jumps to described second function from described first call instruction of described first function, starts the instruction performing described second function according to the instruction sequences of described second function.
It should be noted that, when described equipment performs described first call instruction of described first function, before jumping to described second function, described processor the address of next instruction of the first call instruction described in described first function can be recorded as return address, so that can turn back to the instruction after the first call instruction described in described first function of described first function continuation execution after jumping to described second function.
S202, in response to performing the Article 1 instruction of described second function, jump to the intermediate code of patch file.
Described device responds in described first function described first call instruction and after jumping to described second function, perform the Article 1 instruction of described second function.After Bootload patch file, the Article 1 instruction of described second function is the call instruction of the intermediate code for calling described patch file.Described equipment performs the Article 1 instruction of described second function, and described equipment jumps to the intermediate code of described patch file from the Article 1 instruction of described second function, starts the instruction performing described intermediate code.Be understandable that, when described equipment performs the Article 1 instruction of described second function, the return address of described equipment record is constant.Also, namely, after described equipment jumps to described intermediate code, the return address of described equipment record is still the address of the address order of next instruction of the first call instruction described in described first function.Therefore, after patch file described in Bootload, the in fact no longer all instructions of executive software before not loading described patch file in described second function of described equipment, but perform the instruction in described patch file.
It should be noted that, in the process of Bootload to described patch file, needing can increase by one for calling the instruction of the code that described patch file provides, as the Article 1 instruction of described second function in described second function upgraded.After this, described equipment can jump to function that patch file provides and no longer perform original instruction of described second function when calling described second function, therefore, patch file just achieves the renewal to the second function.Particularly, in order to realize patch file described in Bootload, the present embodiment is as comprised: patch file as described in obtaining, and obtains the address of described second function according to described patch file; According to the address of described second function, in described second function, add the instruction for jumping to described intermediate code, as the Article 1 instruction of described second function.In a specific embodiment, mark or the address of described second function is recorded in described patch file.Described equipment can according to the mark of described second function in described patch file or address in the process described patch file being loaded into software, determine that described patch file is for upgrading described second function, and obtain the address of described second function.According to the address search of described second function to described second function, generate one for the instruction of strip to the intermediate code of described patch file, and this instruction is added to the Article 1 instruction of described second function as described second function.
S203, instruction according to described intermediate code, the return address of the table address of described first function and described first call instruction is saved in the headspace of described patch file, the table address of described first function is the address of the list structure of described first function, and the list structure of described first function is for recording the address of the allocating object of described first function.
Particularly, there is in patch file the headspace for preserving table address and return address, and the intermediate code of described patch file includes the instruction for preserving table address and the instruction for preserving return address.Described device responds in described second function Article 1 instruction and after jumping to described intermediate code, perform described intermediate code for preserving the instruction of table address and the instruction for preserving return address, the table address of described first function of current record and the return address of described first call instruction are saved in the headspace of described patch file.
Be understandable that, in the process performing described first function, in order to realize each call instruction in the first function, described equipment needs the table address recording described first function in internal memory.Particularly, described equipment finds the list structure of described first function according to the table address of described first function, searches the address of the allocating object of described first function in the list structure of described first function.Described equipment, according to the address of the allocating object found, finds the allocating object of described first function, realizes the execution of call instruction.Therefore, described equipment was at described first function of execution before jumping to described intermediate code, and what now record in described device memory is the table address of described first function.When performing the instruction of described intermediate code, the table address of its internal memory record is saved in described headspace by described equipment, then the table address preserved in described headspace is actually the table address of described first function.
It should be noted that, in the process of described first call instruction performing described first function, the return address that described equipment records in internal memory is the return address of described first call instruction, described like this equipment can described first call instruction call completely after return described first function again and continue execution subsequent instructions.Wherein, the return address of described first call instruction represents the address of next instruction of the first call instruction described in described first function.Described equipment was that the return address of now recording in described device memory is the return address of described first call instruction at execution described first call instruction before jumping to described intermediate code.When performing the instruction of described intermediate code, the return address of its internal memory record is saved in described headspace by described equipment, then the return address of preserving in described headspace is actually the return address of described first call instruction.
S204, in response to execution to the second call instruction in described intermediate code, jump to the 3rd function of described patch file, described 3rd function be used for described second function is upgraded.
In described intermediate code the instruction for preserving table address and for preserve return address instruction after comprise described second call instruction.Described second call instruction is for calling the 3rd function in described patch file.Visible, after described equipment performs described first call instruction of described first function, described 3rd function that what in fact described equipment performed is in described patch file instead of described second function, therefore just achieve described 3rd function and upgrade described second function.
Be understandable that, after jumping to described 3rd function, what described equipment performed is described 3rd function, and now, the table address recorded in described device memory is the table address of described 3rd function.And the table address of described first function originally recorded in described device memory will be dropped.Before jumping to described 3rd function, described equipment is at described second call instruction performing described intermediate code, now, the return address of recording in described device memory is the return address of described second call instruction, i.e. the address of next instruction of the second call instruction described in described intermediate code.And the return address of described first call instruction originally recorded in described device memory will be dropped.
S205, in response to the execution completing described 3rd function, according to the return address of described second call instruction, return described intermediate code.
Be understandable that, after described 3rd function is complete, described equipment, according to the return address of described second call instruction recorded in internal memory, returns next instruction of the second call instruction described in described intermediate code.
S206, instruction according to described intermediate code, recover the table address of described first function and the return address of described first call instruction from described headspace.
In the present embodiment, also comprise for recovery table address and the instruction for recovering return address after described second call instruction in described intermediate code.After turning back to described intermediate code from described 3rd function, the table address that described equipment can read described first function in response to the instruction for recovery table address from described headspace returns to record in internal memory, further, the return address that described equipment can read described first call instruction in response to the instruction for recovering return address from described headspace returns to record in internal memory.Wherein, return to the return address of described first call instruction of internal memory, after may be used for making complete described 3rd function of described equipment, finally turn back to next article of instruction of the first call instruction described in described first function.Return to the table address of described first function of internal memory, may be used for making described equipment can the allocating object of the first function described in normal call to perform after described 3rd function turns back to described first function the process of described first function.
S207, return address according to described first call instruction, return described first function.
After returning described first function, the table address of described first function due to what record in described device memory, described equipment can search the address of allocating object in the process of described first function of follow-up execution according to the list structure of described first function, thus each call instruction that described first function of correct execution is follow-up.
Furthermore, after returning described first function, break down or exception if described equipment performs in the process of described first function, then described equipment can determine that the loading of described patch file result in this fault or exception, now, described equipment can cancel the loading of described patch file.Particularly, the present embodiment such as can also comprise: return described first function in response to described, whether the execution of monitoring described first function breaks down; When the execution monitoring described first function is broken down, delete in described second function for jumping to the Article 1 instruction of described intermediate code.Be understandable that, the instruction for jumping to described intermediate code adds described second function to as Article 1 instruction when described patch file is loaded into software.After Article 1 instruction for jumping to described intermediate code in described second function is deleted, all instructions of described second function and the described intermediate code that no longer performs in described patch file and described 3rd function when described equipment jumps to described second function, will be performed.
Shown in Fig. 3 is the schematic flow sheet of equipment run time version instruction in the present embodiment.First function is the process function of software.Second function is the allocating object of described first function, is the original function needing in described software to upgrade.Patch file comprises headspace, intermediate code and the 3rd function.3rd function is the new function for upgrading described second function.Described first function comprises the first call instruction for calling described second function and instruction a, described instruction a are next instructions of described first call instruction, and namely the return address of described first call instruction is the address of described instruction a.Described second function comprises the instruction b for calling described intermediate code, and described instruction b is the Article 1 instruction of described second function.Described headspace comprises the space a for preserving table address and the space b for preserving return address.Described intermediate code comprise instruction c for preserving table address, for preserve return address instruction d, for call described 3rd function the second call instruction, for the instruction e of recovery table address, for recovering the instruction f of return address and the instruction h for returning described first function.Before described instruction c and described instruction d is positioned at described second call instruction, after described instruction e and described instruction f is positioned at described second call instruction, described instruction h is the last item instruction of described intermediate code.Described instruction e is next instruction of described second call instruction, the return address of described second call instruction is the address of described instruction e, or described instruction f is next instruction of described second call instruction, the return address of described second call instruction is the address of described instruction f.The last item instruction of described 3rd function is the instruction for returning described intermediate code.
According to the code execution flow journey shown in Fig. 3, perform in the process of described first function at equipment, when performing described first call instruction, described equipment jumps to described second function.When performing described instruction b, described equipment jumps to described intermediate code.When performing instruction c, the table address of described first function is saved in the space a in described headspace by described equipment, and the address of the described instruction a as return address is saved in the space b in described headspace.When performing described second call instruction, described equipment jumps to described 3rd function.When performing the last item instruction of described 3rd function, described equipment returns described intermediate code.When performing described instruction e, described equipment recovers the table address of described first function from the space a of described headspace.When performing described instruction f, described equipment recovers the address of described instruction a as return address from the space b of described headspace.When performing described instruction h, described equipment returns the instruction a in described first function.
In a specific embodiment, described equipment can adopt treatment scheme as shown in Figure 4 for the processing procedure of described patch file.In load phase, instruction for the intermediate code jumping to described patch file is added to the Article 1 instruction as described second function in described second function, and the address of described 3rd function is added in described intermediate code described second call instruction formed for calling described 3rd function.In the activation stage, described equipment runs described software, performs described first function, described second function, described intermediate code and described 3rd function according to instruction.If there is exception or fault in the operational process of described software, then cancel the loading of described patch file, the Article 1 instruction being used for calling described intermediate code in described second function is deleted.In the operation phase, described equipment normally runs described software, no longer cancels the loading of described patch file for the exception occurred in described software running process or fault.In the deletion stage, the Article 1 instruction being used for calling described intermediate code is deleted, and delete described patch file on said device in described second function.
In the technical scheme of the embodiment of the present invention, on the one hand, the table address of the first function lost when intermediate code calls the 3rd function, can recover from headspace executing before the 3rd function returns the first function, therefore, after returning the first function, the address of allocating object can be searched from the list structure of the first function according to the table address recovered in the process of execution first function, thus the allocating object avoided from the first function cannot be found when performing the first function again after the 3rd function returns the first function, the operation avoiding software is broken down, decrease the situation that interrupting appears in running software, on the other hand, although the return address of the first call instruction has been replaced by the return address of the second call instruction when intermediate code calls the 3rd function, but executing the return address can recovering the first call instruction before the 3rd function returns the first function from headspace, the first function can be returned according to the return address of the first call instruction recovered, thus avoid the execution that cannot return the first function continuation subsequent instructions after the 3rd function executes, the operation avoiding software is broken down, and decreases the situation that interrupting appears in running software, again on the one hand, headspace is reserved to preserve the table address of the first function and the return address of the first call instruction in patch file, the table address preserved and return address can not take stack frame structure, thus ensure that calling of the 3rd function has identical stack frame structure with calling of the second function, avoid stack frame structure and change the acquisition of information mistake caused, and then avoid the running software that acquisition of information mistake causes and interrupt.As can be seen here, by the technical scheme of the present embodiment, after patch file upgrades software, the many factors causing software interruption to be run are avoided, and therefore, the possibility that running software interrupts reduces greatly.
See Fig. 5, show a kind of schematic flow sheet generating the method for patch file in the embodiment of the present invention.In the present embodiment, described method such as specifically can comprise:
The patch file of S501, acquisition OBJ form;
S502, generate the patch file of PAT form according to the patch file of described OBJ form;
Wherein, the patch file of described PAT form comprises the 3rd function, intermediate code and headspace;
Described 3rd function is used for upgrading the second function, and described second function is the allocating object of the first function;
Described intermediate code is used for preserving the table address of described first function and returning an address to described headspace and recovering the table address of described first function and the return address of described first call instruction when described 3rd function returns described intermediate code from described headspace of described first call instruction when described second function jumps to described intermediate code, the table address of described first function is the address of the list structure of described first function, the list structure of described first function is for recording the address of the allocating object of described first function, described first call instruction is for calling the instruction of described second function in described first function,
Described headspace is used for calling in the process of described 3rd function in described intermediate code storing the table address of described first function and the return address of described first call instruction.
In a specific embodiment, described S502 such as can comprise: the reorientation patch file of described OBJ form being carried out to described 3rd function, and adds described headspace in the patch file of described OBJ form.Wherein, described OBJ comprises described 3rd function.Described PAT file comprises described 3rd function, described intermediate code and described headspace.Described intermediate code comprises the second call instruction for calling described 3rd function.The address of described 3rd function can obtain when generating described PAT file and add in described second call instruction, or, the acquisition instruction of described 3rd function address can be carried in described PAT file, the address of described 3rd function also can be described PAT files loading when having the equipment of software to operation described equipment obtain according to described acquisition instruction and add in described second call instruction.
Be understandable that, the patch file of described PAT form be namely equivalent to aforementioned embodiment illustrated in fig. 2 in patch file.Described patch file can see the embodiment shown in earlier figures 2 to the patch mode of software on equipment, and the present embodiment is no longer reviewed at this.
The patch file adopting the present embodiment to generate carries out patch to software, on the one hand, the table address of the first function lost when intermediate code calls the 3rd function, can recover from headspace executing before the 3rd function returns the first function, therefore, after returning the first function, the address of allocating object can be searched from the list structure of the first function according to the table address recovered in the process of execution first function, thus the allocating object avoided from the first function cannot be found when performing the first function again after the 3rd function returns the first function, the operation avoiding software is broken down, decrease the situation that interrupting appears in running software, on the other hand, although the return address of the first call instruction has been replaced by the return address of the second call instruction when intermediate code calls the 3rd function, but executing the return address can recovering the first call instruction before the 3rd function returns the first function from headspace, the first function can be returned according to the return address of the first call instruction recovered, thus avoid the execution that cannot return the first function continuation subsequent instructions after the 3rd function executes, the operation avoiding software is broken down, and decreases the situation that interrupting appears in running software, again on the one hand, headspace is reserved to preserve the table address of the first function and the return address of the first call instruction in patch file, the table address preserved and return address can not take stack frame structure, thus ensure that calling of the 3rd function has identical stack frame structure with calling of the second function, avoid stack frame structure and change the acquisition of information mistake caused, and then avoid the running software that acquisition of information mistake causes and interrupt.As can be seen here, by the technical scheme of the present embodiment, after patch file upgrades software, the many factors causing software interruption to be run are avoided, and therefore, the possibility that running software interrupts reduces greatly.
See Fig. 6, show the structural representation of a kind of patch treatment facility in the embodiment of the present invention.In the present embodiment, described equipment 600 such as specifically can comprise:
First jump-transfer unit 601, in response to performing to the first call instruction in the first function, jumps to described second function;
Second jump-transfer unit 602, in response to the Article 1 instruction performing described second function, jumps to the intermediate code of patch file;
Storage unit 603, for the instruction according to described intermediate code, the return address of the table address of described first function and described first call instruction is saved in the headspace of described patch file, the table address of described first function is the address of the list structure of described first function, and the list structure of described first function is for recording the address of the allocating object of described first function;
3rd jump-transfer unit 604, in response to performing to the second call instruction in described intermediate code, jumps to the 3rd function of described patch file, and described 3rd function is used for upgrading described second function;
First returns unit 605, in response to the execution completing described 3rd function, according to the return address of described second call instruction, returns described intermediate code;
Recovery unit 606, for the instruction according to described intermediate code, recovers the table address of described first function and the return address of described first call instruction from described headspace;
Second returns unit 607, for the return address according to described first call instruction, returns described first function.
In some embodiments of the present embodiment, described equipment 600 such as can also comprise:
First acquiring unit, for obtaining described patch file;
Second acquisition unit, for obtaining the address of described second function according to described patch file;
Adding device, for the address according to described second function, adds the instruction for jumping to described intermediate code, as the Article 1 instruction of described second function in described second function.
In other embodiments of the present embodiment, described equipment 600 such as can also comprise:
Monitoring means, for returning described first function in response to described, whether the execution of monitoring described first function breaks down;
Delete cells, during for breaking down when the execution monitoring described first function, deletes in described second function for jumping to the Article 1 instruction of described intermediate code.
In the technical scheme of the embodiment of the present invention, on the one hand, the table address of the first function lost when intermediate code calls the 3rd function, can recover from headspace executing before the 3rd function returns the first function, therefore, after returning the first function, the address of allocating object can be searched from the list structure of the first function according to the table address recovered in the process of execution first function, thus the allocating object avoided from the first function cannot be found when performing the first function again after the 3rd function returns the first function, the operation avoiding software is broken down, decrease the situation that interrupting appears in running software, on the other hand, although the return address of the first call instruction has been replaced by the return address of the second call instruction when intermediate code calls the 3rd function, but executing the return address can recovering the first call instruction before the 3rd function returns the first function from headspace, the first function can be returned according to the return address of the first call instruction recovered, thus avoid the execution that cannot return the first function continuation subsequent instructions after the 3rd function executes, the operation avoiding software is broken down, and decreases the situation that interrupting appears in running software, again on the one hand, headspace is reserved to preserve the table address of the first function and the return address of the first call instruction in patch file, the table address preserved and return address can not take stack frame structure, thus ensure that calling of the 3rd function has identical stack frame structure with calling of the second function, avoid stack frame structure and change the acquisition of information mistake caused, and then avoid the running software that acquisition of information mistake causes and interrupt.As can be seen here, by the technical scheme of the present embodiment, after patch file upgrades software, the many factors causing software interruption to be run are avoided, and therefore, the possibility that running software interrupts reduces greatly.
See Fig. 7, show a kind of structural representation generating the equipment of patch file in the embodiment of the present invention.In the present embodiment, described equipment 700 such as specifically can comprise:
Acquiring unit 701, for obtaining the patch file of OBJ form;
Generation unit 702, for generating the patch file of PAT form according to the patch file of described OBJ form;
Wherein, the patch file of described PAT form comprises the 3rd function, intermediate code and headspace;
Described 3rd function is used for upgrading the second function, and described second function is the allocating object of the first function;
Described intermediate code is used for preserving the table address of described first function and returning an address to described headspace and recovering the table address of described first function and the return address of described first call instruction when described 3rd function returns described intermediate code from described headspace of described first call instruction when described second function jumps to described intermediate code, the table address of described first function is the address of the list structure of described first function, the list structure of described first function is for recording the address of the allocating object of described first function, described first call instruction is for calling the instruction of described second function in described first function,
Described headspace is used for calling in the process of described 3rd function in described intermediate code storing the table address of described first function and the return address of described first call instruction.
Optionally, described generation unit 702 such as specifically can comprise:
Reorientation subelement, for carrying out the reorientation of described 3rd function to the patch file of described OBJ form;
Add subelement, for adding described headspace in the patch file of described OBJ form.
The patch file adopting the present embodiment to generate carries out patch to software, on the one hand, the table address of the first function lost when intermediate code calls the 3rd function, can recover from headspace executing before the 3rd function returns the first function, therefore, after returning the first function, the address of allocating object can be searched from the list structure of the first function according to the table address recovered in the process of execution first function, thus the allocating object avoided from the first function cannot be found when performing the first function again after the 3rd function returns the first function, the operation avoiding software is broken down, decrease the situation that interrupting appears in running software, on the other hand, although the return address of the first call instruction has been replaced by the return address of the second call instruction when intermediate code calls the 3rd function, but executing the return address can recovering the first call instruction before the 3rd function returns the first function from headspace, the first function can be returned according to the return address of the first call instruction recovered, thus avoid the execution that cannot return the first function continuation subsequent instructions after the 3rd function executes, the operation avoiding software is broken down, and decreases the situation that interrupting appears in running software, again on the one hand, headspace is reserved to preserve the table address of the first function and the return address of the first call instruction in patch file, the table address preserved and return address can not take stack frame structure, thus ensure that calling of the 3rd function has identical stack frame structure with calling of the second function, avoid stack frame structure and change the acquisition of information mistake caused, and then avoid the running software that acquisition of information mistake causes and interrupt.As can be seen here, by the technical scheme of the present embodiment, after patch file upgrades software, the many factors causing software interruption to be run are avoided, and therefore, the possibility that running software interrupts reduces greatly.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the relevant device specific works process of foregoing description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed method, relevant device and system, can realize by another way.Such as, relevant device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.Term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a patch disposal route, is characterized in that, described method comprises:
In response to execution to the first call instruction in the first function, jump to the second function;
In response to the Article 1 instruction performing described second function, jump to the intermediate code of patch file;
According to the instruction of described intermediate code, the return address of the table address of described first function and described first call instruction is saved in the headspace of described patch file, the table address of described first function is the address of the list structure of described first function, and the list structure of described first function is for recording the address of the allocating object of described first function;
In response to execution to the second call instruction in described intermediate code, jump to the 3rd function of described patch file, described 3rd function is used for upgrading described second function;
In response to the execution completing described 3rd function, according to the return address of described second call instruction, return described intermediate code;
According to the instruction of described intermediate code, from described headspace, recover the table address of described first function and the return address of described first call instruction;
According to the return address of described first call instruction, return described first function.
2. method according to claim 1, is characterized in that, also comprises:
Obtain described patch file, and obtain the address of described second function according to described patch file;
According to the address of described second function, in described second function, add the instruction for jumping to described intermediate code, as the Article 1 instruction of described second function.
3. method according to claim 1, is characterized in that, also comprises:
Return described first function in response to described, whether the execution of monitoring described first function breaks down;
When the execution monitoring described first function is broken down, delete in described second function for jumping to the Article 1 instruction of described intermediate code.
4. generate a method for patch file, it is characterized in that, described method comprises:
Obtain the patch file of OBJ form, and generate the patch file of PAT form according to the patch file of described OBJ form;
Wherein, the patch file of described PAT form comprises the 3rd function, intermediate code and headspace;
Described 3rd function is used for upgrading the second function, and described second function is the allocating object of the first function;
Described intermediate code is used for preserving the table address of described first function and returning an address to described headspace and recovering the table address of described first function and the return address of described first call instruction when described 3rd function returns described intermediate code from described headspace of described first call instruction when described second function jumps to described intermediate code, the table address of described first function is the address of the list structure of described first function, the list structure of described first function is for recording the address of the allocating object of described first function, described first call instruction is for calling the instruction of described second function in described first function,
Described headspace is used for calling in the process of described 3rd function in described intermediate code storing the table address of described first function and the return address of described first call instruction.
5. method according to claim 4, is characterized in that, the described patch file according to described OBJ form generates the patch file of PAT form, comprising:
The patch file of described OBJ form is carried out to the reorientation of described 3rd function, and add described headspace in the patch file of described OBJ form.
6. a patch treatment facility, is characterized in that, described equipment comprises:
First jump-transfer unit, in response to performing to the first call instruction in the first function, jumps to the second function;
Second jump-transfer unit, in response to the Article 1 instruction performing described second function, jumps to the intermediate code of patch file;
Storage unit, for the instruction according to described intermediate code, the return address of the table address of described first function and described first call instruction is saved in the headspace of described patch file, the table address of described first function is the address of the list structure of described first function, and the list structure of described first function is for recording the address of the allocating object of described first function;
3rd jump-transfer unit, in response to performing to the second call instruction in described intermediate code, jumps to the 3rd function of described patch file, and described 3rd function is used for upgrading described second function;
First returns unit, in response to the execution completing described 3rd function, according to the return address of described second call instruction, returns described intermediate code;
Recovery unit, for the instruction according to described intermediate code, recovers the table address of described first function and the return address of described first call instruction from described headspace;
Second returns unit, for the return address according to described first call instruction, returns described first function.
7. equipment according to claim 6, is characterized in that, also comprises:
First acquiring unit, for obtaining described patch file;
Second acquisition unit, for obtaining the address of described second function according to described patch file;
Adding device, for the address according to described second function, adds the instruction for jumping to described intermediate code, as the Article 1 instruction of described second function in described second function.
8. equipment according to claim 6, is characterized in that, also comprises:
Monitoring means, for returning described first function in response to described, whether the execution of monitoring described first function breaks down;
Delete cells, during for breaking down when the execution monitoring described first function, deletes in described second function for jumping to the Article 1 instruction of described intermediate code.
9. generate an equipment for patch file, it is characterized in that, described equipment comprises:
Acquiring unit, for obtaining the patch file of OBJ form;
Generation unit, for generating the patch file of PAT form according to the patch file of described OBJ form;
Wherein, the patch file of described PAT form comprises the 3rd function, intermediate code and headspace;
Described 3rd function is used for upgrading the second function, and described second function is the allocating object of the first function;
Described intermediate code is used for preserving the table address of described first function and returning an address to described headspace and recovering the table address of described first function and the return address of described first call instruction when described 3rd function returns described intermediate code from described headspace of described first call instruction when described second function jumps to described intermediate code, the table address of described first function is the address of the list structure of described first function, the list structure of described first function is for recording the address of the allocating object of described first function, described first call instruction is for calling the instruction of described second function in described first function,
Described headspace is used for calling in the process of described 3rd function in described intermediate code storing the table address of described first function and the return address of described first call instruction.
10. equipment according to claim 9, is characterized in that, described generation unit comprises:
Reorientation subelement, for carrying out the reorientation of described 3rd function to the patch file of described OBJ form;
Add subelement, for adding described headspace in the patch file of described OBJ form.
CN201510934339.3A 2015-12-15 2015-12-15 The method and apparatus of patch processing and the method and apparatus for generating patch Active CN105573788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510934339.3A CN105573788B (en) 2015-12-15 2015-12-15 The method and apparatus of patch processing and the method and apparatus for generating patch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510934339.3A CN105573788B (en) 2015-12-15 2015-12-15 The method and apparatus of patch processing and the method and apparatus for generating patch

Publications (2)

Publication Number Publication Date
CN105573788A true CN105573788A (en) 2016-05-11
CN105573788B CN105573788B (en) 2019-02-26

Family

ID=55883961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510934339.3A Active CN105573788B (en) 2015-12-15 2015-12-15 The method and apparatus of patch processing and the method and apparatus for generating patch

Country Status (1)

Country Link
CN (1) CN105573788B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095416A (en) * 2016-06-01 2016-11-09 腾讯科技(深圳)有限公司 A kind of in the application redirect processing method, device and intelligent terminal
CN107357622A (en) * 2017-07-17 2017-11-17 迈普通信技术股份有限公司 Hot patch implementation method and communication equipment
CN109766145A (en) * 2019-01-22 2019-05-17 杭州云缔盟科技有限公司 A kind of method that function hot patch is realized by HOOK technology under Windows
CN110554998A (en) * 2018-03-30 2019-12-10 腾讯科技(深圳)有限公司 hook method, device, terminal and storage medium for replacing function internal instruction
CN111381905A (en) * 2018-12-27 2020-07-07 北京华为数字技术有限公司 Program processing method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1475909A (en) * 2002-08-16 2004-02-18 华为技术有限公司 realization of isertion type system soft ware patch and control method
JP2010134644A (en) * 2008-12-03 2010-06-17 Dainippon Printing Co Ltd Ic card and patch execution method
CN101799763A (en) * 2009-02-10 2010-08-11 华为技术有限公司 Method, device and system for patching kernel on line
CN103019787A (en) * 2012-12-14 2013-04-03 华为技术有限公司 Function call relation determining method, hotfix updating method and hotfix updating device
CN103197942A (en) * 2013-03-18 2013-07-10 华为技术有限公司 Patch generation method, patching method and device
CN103309683A (en) * 2012-03-07 2013-09-18 京信通信系统(中国)有限公司 Software patch embedding method and device for hardware equipment
CN104125101A (en) * 2014-08-12 2014-10-29 烽火通信科技股份有限公司 Method for upgrading subordinate business single disks in batches by hot patches for communication system network element
CN104461625A (en) * 2014-12-04 2015-03-25 上海斐讯数据通信技术有限公司 Hot patch realization method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1475909A (en) * 2002-08-16 2004-02-18 华为技术有限公司 realization of isertion type system soft ware patch and control method
JP2010134644A (en) * 2008-12-03 2010-06-17 Dainippon Printing Co Ltd Ic card and patch execution method
CN101799763A (en) * 2009-02-10 2010-08-11 华为技术有限公司 Method, device and system for patching kernel on line
CN103309683A (en) * 2012-03-07 2013-09-18 京信通信系统(中国)有限公司 Software patch embedding method and device for hardware equipment
CN103019787A (en) * 2012-12-14 2013-04-03 华为技术有限公司 Function call relation determining method, hotfix updating method and hotfix updating device
CN103197942A (en) * 2013-03-18 2013-07-10 华为技术有限公司 Patch generation method, patching method and device
CN104125101A (en) * 2014-08-12 2014-10-29 烽火通信科技股份有限公司 Method for upgrading subordinate business single disks in batches by hot patches for communication system network element
CN104461625A (en) * 2014-12-04 2015-03-25 上海斐讯数据通信技术有限公司 Hot patch realization method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095416A (en) * 2016-06-01 2016-11-09 腾讯科技(深圳)有限公司 A kind of in the application redirect processing method, device and intelligent terminal
CN107357622A (en) * 2017-07-17 2017-11-17 迈普通信技术股份有限公司 Hot patch implementation method and communication equipment
CN110554998A (en) * 2018-03-30 2019-12-10 腾讯科技(深圳)有限公司 hook method, device, terminal and storage medium for replacing function internal instruction
CN110554998B (en) * 2018-03-30 2024-02-13 腾讯科技(深圳)有限公司 Hook method, device, terminal and storage medium for replacing function internal instruction
CN111381905A (en) * 2018-12-27 2020-07-07 北京华为数字技术有限公司 Program processing method, device and equipment
CN111381905B (en) * 2018-12-27 2023-07-18 北京华为数字技术有限公司 Program processing method, device and equipment
CN109766145A (en) * 2019-01-22 2019-05-17 杭州云缔盟科技有限公司 A kind of method that function hot patch is realized by HOOK technology under Windows

Also Published As

Publication number Publication date
CN105573788B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN105573788A (en) Patch processing method and device as well as patch generation method and device
US8726262B2 (en) Firmware update system and information apparatus, and program
CN102165422B (en) Firmware update device and method
CN102567128B (en) System reset
CN106970856B (en) Data management system and method for backing up, recovering and mounting data
US7818622B2 (en) Method for recovering data processing system failures
CN103677870A (en) System upgrading method and system upgraded by means of method
CN105786537A (en) Hot patch realization method and device
CN113744064B (en) Method and apparatus for performing transactions in block link points
CN109324918A (en) Processing method and processing device, terminal and the storage medium of application exception
CN112182010B (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN105867962A (en) System upgrading method and device
CN107924397B (en) File editing method and file editor
CN106055372A (en) Method and device for uninstalling application
EP2966572B1 (en) Database device, program, and data processing method
CN106201570A (en) A kind of application program exempts from installation and operation method and device
CN108664255B (en) Software upgrading method and device
CN106897063B (en) Method and system for permanently adding OS boot entry to BIOS based on EFI
CN105550066A (en) File system breakdown solution method and system
CN103019773A (en) System update power failure protection method and system, and mobile terminal
CN105830067A (en) Document information processing method, apparatus, and document processing apparatus and system
CN106209450B (en) Server failure switching method and application automatically dispose system
CN102394761B (en) Charge system upgrading method and device
CN108509252B (en) Virtual machine starting device and method and host
CN110618886A (en) Version rollback method, mobile terminal and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211229

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.