摘要 |
<p><P>PROBLEM TO BE SOLVED: To provide a protection method for data in a stack area in a computer memory, allowing detection of, especially, a change of a local variable or an argument to a function in the stack area by a program created by a marketed compiler, and allowing detection of a change by memory failure or the like, too. <P>SOLUTION: A copy of data stored in the stack area 28 is stored in the stack area 28, or a hash value (crc (Cyclic Redundancy Check)) is also simultaneously stored in the stack area 28 when the data are large. In time of execution of the program, the stored data or hash value (crc), and the copied data or recalculated hash value (crc) are compared. When two sides vary, the execution of the program is stopped, and presence of abnormality in the data stored in the stack area is notified to a user. <P>COPYRIGHT: (C)2010,JPO&INPIT</p> |