Method, device and system for activating on-line patch
Abstract
Embodiments of the present invention provide a method, a device and a system for activating an on-line patch. The method comprises: positioning an address of a patch function and an entry address of a to-be-patched function; writing, in a middle segment, a long-jump instruction for jumping to the patch function based on the address of the patch function and the entry address of the to-be-patched function, where the middle segment is a storage space, which is located before or after the entry position of the to-be-patched function and can at least store one long-jump instruction; and modifying an instruction at the entry position of the to-be-patched function to a short-jump instruction for jumping to the middle segment, so as to jump to the middle segment after the short jump instruction is executed, and then to jump to and execute the patch function through that instructions in the middle segment are executed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for activating an on-line patch, the method comprising: reserving, while a to-be-patched program is compiled, a middle segment adjacent an entry position of each function of one or more to-be-patched functions of the to-be-patched program; determining an address of a patch function and an entry address of the to-be-patched function; writing, in the middle segment, a long-jump instruction for jumping to the patch function based on the address of the patch function and the entry address of the to-be-patched function, wherein the middle segment is a storage space, which is located adjace
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 9,841,971 B1 | Embedding software updates into content retrieved by applications | 2017 | 1 |
References Cited — Backward Prior Art (13)
Non-Patent Literature (4)
- European Patent Office communication regarding the extended European search report, pursuant to Rule 62 EPC, the supplementary European search report (Art. 153(7) EPC) and the European search opinion related to Application No. 10845571.8-2211 / 2434394 for Huawei Tech Co., Ltd.; mailed Apr. 3, 2012
- First Chinese Office Action mailed Jun. 5, 2012, issued in related Chinese Application No. 201010113646.2, Huawei Technologies Co., Ltd. (7 pages).
- International Search Report for International Application No. PCT/CN2010078271, mailed Jan. 27, 2011 Huawei Technologies Co., Ltd.
- SAM242; Article: "API hooking for hotpatchable operating systems"; The Code Project website (http://www.codeproject.com/Articles/27339/API-hooking-for-hotpatchable-orierating-systems); dated Jun. 28, 2008 (4 pgs.).