Defensive heap memory management
Abstract
A data structure, method and system are provided incorporating a general purpose memory allocator and defensive heap memory manager. This provides an ability to reliably detect various types of memory errors, dynamically enable or disable memory debugging, enhance success of read and write operations using various memory verification techniques. Further, through separation of control information associated with allocated and free chunks of memory from the chunks themselves (separation of metadata from actual data), enhanced protection of vital information about the heap memory layout in general is provided. The heap memory manager uses read, write, and execute protected heap header walls and pool header walls and may, for each pool and memory block, separately use hidden front and back Memory Debug Information Areas (MDIAs) with checksums and well-known signature fields thereby enhancing overall memory management.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 22.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for managing memory by a memory manager of a data processing system, said method comprising: allocating a memory chunk, including a front memory debug information area (MDIA) and a rear MDIA; determining debugging conditions indicated by a plurality of debug options indicators in said front MDIA, wherein performing said determination may be made selectively; and selectively modifying said debug options indicators.
- Claim 2Depends on #1
The method of claim 1 , wherein the front MDIA contains a first checksum and the rear MDIA contains a second checksum, further comprising: determining a status of the first checksum and the second checksum wherein said status indicating corrupted data; responsive to said status performing the method of: determining a range of corrupt data based upon the status; finding control information related to said corrupt data; and perform
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗