Detecting dangling pointers and memory leaks within software
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for detecting at least one of a dangling pointer and a memory leak location within a software, comprising: at runtime of the software: first tracking, by a digital processor, the software as the software performs at least one of allocating and deallocating memory, said first tracking including maintaining a linked list of at least one pointer and in a memory record specific to pointers of the linked list maintaining explicit indications of status of each pointer in the linked list, the linked list including a reference to the memory that has been allocated or deallocated, and said fir
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (13)
Non-Patent Literature (5)
- Begic, "An introduction to runtime analysis with Rational PurifyPlus," IBM, Nov. 19, 2003, retrieved from http://www.ibm.com/developerworks/rational/library/957.html.
- Comparing and contrasting the runtime error detection technologies used in HeapAgent(TM) 3.0, Purify NT® 4.0, and BoundsChecker Pro(TM) 4.0, Copyright © 1996-1997 MicroQuill Software Publishing, Inc.
- Comparing and contrasting the runtime error detection technologies used in HeapAgent™ 3.0, Purify NT® 4.0, and BoundsChecker Pro™ 4.0, Copyright © 1996-1997 MicroQuill Software Publishing, Inc.
- Garbervetsky, D., et al., "Program Instrumentation and Run-Time Analysis of Scoped Memory in Java," Electronic Notes in Theoretical Computer Science, 2004.
- Gupta et al., "Navigating "C" in a "leaky" boat? Try Purify," IBM, Aug. 22, 2006.