Invention Grant
- Patent Title: Detecting dangling pointers and memory leaks within software
- Patent Title (中): 检测软件中的悬挂指针和内存泄漏
-
Application No.: US13448988Application Date: 2012-04-17
-
Publication No.: US08549503B2Publication Date: 2013-10-01
- Inventor: Satish Chandra Gupta
- Applicant: Satish Chandra Gupta
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Hamilton, Brook, Smith & Reynolds P.C.
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
Dangling pointers and memory leak locations within software are detected. As the software allocates and deallocates memory, lists of pointers referencing the memory, and pointer status, are maintained. As the software writes new addresses within pointers and reads addresses referenced by the pointers, the pointer lists are maintained to determine whether the pointers are dangling and to detect memory leak locations. A balanced binary tree having a number of nodes can be maintained. The nodes represent heap or stack records. Each heap record corresponds to heap memory that has been allocated and has a list of pointers referencing the heap memory. Each stack record corresponds to a stack within which a stack frame is allocated each time a function is entered. The stack record has frame records corresponding to the stack frames. Each frame record has a list of pointers referencing the corresponding stack frame.
Public/Granted literature
- US20120204165A1 Detecting Dangling Pointers And Memory Leaks Within Software Public/Granted day:2012-08-09
Information query