Patent ID: 7814333

Claim:
A method of recovering an operation state of a processor from a buffer overflow attack, the method comprising: (a) detecting whether a buffer overflow attack is made on any write operation while storing write operations that are potential targets of buffer overflow attacks in a predetermined location instead of an original destination to store write operations; (b) storing the contents stored in the predetermined location at a predetermined interval in the original destination for storing write operations if no buffer overflow attack is detected and discarding unsafe write operations subsequent to a buffer overflow attack if a buffer overflow attack is detected; and (c) ignoring the unsafe write operations subsequent to the buffer overflow attack if a buffer overflow attack is detected, wherein if the original destination storing the write operations is accessed for a read operation, the original destination and the predetermined location storing the write operations are simultaneously accessed, and if an address for the read operation is included in the predetermined location storing the write operations, which are not yet stored in the original destination, data for the read operation is provided from the predetermined location storing the write operations.