Patent ID: 9589133
Date: 2017-03-07
CPC Classifications: G06F

Claim:
1. A computer security method comprising: identifying a set of contiguous computer software instructions extending from a first location within a computer memory to a second location within the computer memory, wherein the set of contiguous computer software instructions includes a return-oriented programming gadget; copying the set of contiguous computer software instructions to extend from a third location within the computer memory to a fourth location within the computer memory; placing a branching instruction at the first location, wherein the branching instruction branches to the third location; appending a return branching instruction to the copy of the set of contiguous computer software instructions, wherein the return branching instruction branches to a fifth location within the computer memory that immediately follows the second location; overwriting at least a portion of the return-oriented programming gadget between the first location and the second location, wherein overwriting comprises overwriting with at least one trap instruction; and configuring a trap handler for the trap instruction to perform a computer-security-related action.