Patent ID: 8732535

Claim:
A method of detection of erroneous memory usage, the method comprising: starting a computer system and executing a predetermined program and a monitoring tool in order to collect all calls to a memory of the computer system during execution of the predetermined program; detecting a call to the memory by using the monitoring tool; extracting, using debug information of the predetermined program, lines of code, from among initial code of the predetermined program, which requests an access to a memory address via the call to the memory; detecting a set of variables to which access is granted via the call to the memory; extracting, after execution of the predetermined program, the set of variables to which access is granted for each of the lines of code according to information on the initial code; detecting the erroneous memory usage by matching the extracted lines of code using the debug information with the set of variable to which access is granted; and determining the call to the memory as erroneous upon access being granted to the memory address corresponding to the set of variables at a certain time during execution of the predetermined program when access to a variable from among the set of variables is not possible at the certain time during the execution of the program.