×

In-memory modification of computer programs

  • US 6,438,621 B1
  • Filed: 08/14/1998
  • Issued: 08/20/2002
  • Est. Priority Date: 11/14/1994
  • Status: Expired due to Term
First Claim
Patent Images

1. A method in a computer system for patching a segment of executable code at runtime under the control of the code segment, the code segment having a selected entry point, a patching section, and a patched section, the patching section for patching the patched section to change the contents of the patched section, comprising the steps of:

  • (a) when the code segment is executed a first time at the selected entry point, executing at least one instruction to jump from the beginning of the patched section to a point external to the patched section and executing the patching section, wherein if the code segment is not executed the first time at the selected entry point, the patching section does not patch the patched section;

    (b) when the patching section is executed, patching the patched section;

    (c) changing at least one instruction to prevent the patching section from being executed again; and

    (d) when the code segment is executed at the selected entry point after step (b), executing the patched section.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×