Changing program behavior at runtime
AssigneeMicrosoft Technology Licensing, LLC
InventorsJingyu Ma, Yong Liu
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Technology Licensing, LLC
InventorsJingyu Ma, Yong Liu
Estimating the term…
A computer system is configured to override an original behavior of a function at runtime. Overriding the original behavior of the function at runtime includes identifying an override behavior for overriding the original behavior of the function, and encoding replacement code based on the override behavior. Further, a size of the replacement code is identified, and a first memory address of the function where code of the function is stored is also identified. The computer system then copies a block of code having the size of the replacement code from the first memory address to a second memory address, and copies the replacement code to the first memory address. After the replacement code is executed, copying the block of code stored at the second memory address back to the first memory address, restoring the code of the function.
A computer system comprising:
A method implemented at a computer system for overriding an original behavior of a function at runtime without changing source code of the function, the method comprising:
A computer program product comprising one or more hardware storage devices having stored thereon computer-executable instructions that are structured such that, when the computer-executable instructions are executed by one or more processors of a computer system, the computer system is configured to perform:
Dependencies are inferred from the claim text.