Invention Grant
US09026866B2 Method and system for realtime detection of stack frame corruption during nested procedure calls 有权
在嵌套过程调用期间实时检测堆栈帧损坏的方法和系统

Method and system for realtime detection of stack frame corruption during nested procedure calls
Abstract:
The present disclosure relates to some aspects relate to a method for detecting stack memory corruption. In some embodiments, the method comprises determining an expected memory range of a data element that is to be written to a stack memory by tracking changes to a stack pointer. The determined memory range is stored in a stack object database. Upon receiving a stack memory access related instruction (e.g., LOAD/STORE instruction or arithmetic instruction operating on memory addresses) to write data to the stack memory, an address of the memory location to be accessed is determined. If the address falls within the expected memory range, no stack corruption is present. However, if the address falls outside of the expected memory range, stack corruption is present. Therefore, the present method provides for real time detection of corruption (e.g., overrun and underrun errors) in stack memory.
Information query
Patent Agency Ranking
0/0