Patch generation method, patching method and device

A patching and patching technology, applied in the computer field, can solve problems such as shortening the life cycle of the patch area

Inactive Publication Date: 2013-07-10
HUAWEI TECH CO LTD
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, although the above functions without inline optimization can directly repair or update the functions that have vulnerabilities or need to be updated, the functions without inline optimization have a great impact on the performance of the final generated application program; For inline optimized functions, in order

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
  • Patch generation method, patching method and device
  • Patch generation method, patching method and device
  • Patch generation method, patching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0100] The embodiment of the present invention provides a patch generation method, which is applied to the scene of patching the inline function, that is, corresponding to the process of patching the called function. The method involves the server device, such as figure 1 shown, including:

[0101] S101. The server device performs function inlining of the inline function and the inline function to generate a third function.

[0102]Wherein, the server device serves the client device, and the service content of the server device includes providing resources to the client device, storing data of the client device, and the like. In the embodiment of the present invention, the server device generates a patch file corresponding to the modified function after obtaining the modified function provided by the software developer, and provides the patch file to the client device, So that the client equipment uses the patch file to patch some functions, that is, to repair some functions....

Embodiment 2

[0170] Embodiments of the present invention provide a patch generation method and a patching method, which are applied to the scene of patching the inline function, that is, corresponding to the process of patching the called function, such as Figure 5 shown, including:

[0171] S501. During the compiling process, the server device performs function inlining of the inline function and the inline function to generate a third function.

[0172] The server device serves the client device, such as providing resources to the client device, saving data of the client device, and so on. The server device in the embodiment of the present invention generates a patch file corresponding to the modified function by obtaining the modified function provided by the software developer, and provides the patch file to the client device for use To repair some functions, that is, to patch some functions.

[0173] The source code of an application program includes multiple functions. If the appl...

Embodiment 3

[0264] Such as Figure 9 As shown, the embodiment of the present invention provides a server device 1, which is applied to the scene of patching the inline function, that is, corresponding to the method of patching the called function, including:

[0265] The first processing unit 10 is configured to generate a third function according to the function inlining of the inline function and the inline function, and generate an equivalent code equivalent to the third function according to the third function part.

[0266] The first obtaining unit 11 is configured to obtain addresses for storing the inline function and the inline function, and obtain a first repair function for repairing the inline function.

[0267] The first processing unit 10 is further configured to replace the inline function in the equivalent code segment with the first repair function according to the address, so as to generate a patch file.

[0268] The first output unit 12 is configured to output the addr...

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 embodiment of the invention provides a patch generation method, a patching method and a patching device, and relates to the field of computers. With adoption of the methods and the device, a hotfix can be patched conveniently on a function through inline optimization to provide guarantee for rapid repairing of an application program through an inline function. The patching method comprises the following steps: performing function inline on the inline function and the inlined function to generate a third function; according to the third function, generating an equivalent code segment equivalent to the third function; obtaining an address for storing the inline function and the inlined function; obtaining a first repairing function for repairing the inlined function; according to the address, replacing the inlined function in the equivalent code segment by the first repairing function to generate a patch file; and outputting the address and the patch file to CPE (customer premise equipment) to enable the CPE to repair the inlined function according to the address and the patch file.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method for generating a patch, a method and a device for applying a patch. Background technique [0002] As compiler optimizations continue to improve, the performance of compiler-optimized code is significantly better than that of non-compiler-optimized code. [0003] At present, in the process of application program development, it is inevitable that there are some loopholes in software design or new requirements of users for the application program. Update, that is, to fix or update the application without suspending the application. The processing method of the hot patch is basically based on the function unit, that is, the repair of the application program can be realized by repairing the functions that have vulnerabilities or need to be updated. [0004] In the prior art, if the functions of the application program have not been optimized by the inline (function inline) of the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445
Inventor 樊瑞
Owner HUAWEI 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