Detecting memory errors using write integrity testing
Abstract
Methods of detecting memory errors using write integrity testing are described. In an embodiment, additional analysis is performed when a program is compiled. This analysis identifies a set of objects which can be written by each instruction in the program. Additional code is then inserted into the program so that, at runtime, the program checks before performing a write instruction that the particular object being written is one of the set of objects that it is allowed to write. The inserted code causes an exception to be raised if this check fails and allows the write to proceed if the check is successful. In a further embodiment, code may also be inserted to perform checks before indirect control-flow transfer instructions, to ensure that those instructions cannot transfer control to locations different from those intended.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 35 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
One or more tangible device-readable memory with device-executable instructions for performing acts comprising: analyzing a program at compile-time to compute a set of objects associated with each instruction in the program, the set of objects associated with the instruction comprising objects that can be written by the instruction; assigning a first color to instructions and associated objects that are identified as safe; assigning a second color to an instruction and associated objects that are identified as unsafe; for each instruction identified as unsafe, defining a color set associated w
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (35)
Non-Patent Literature (5)
- "Advanced Doug lea's malloc exploits," retrieved on Mar. 7, 2008 at <<http://doc.bughunter.net/buffer-overflow/advanced-malloc-exploits.html>>, 37 pages.
- "Advanced Doug lea's malloc exploits," retrieved on Mar. 7, 2008 at >, 37 pages.
- "Beyond Stack Smashing: Recent Advances in Exploiting Buffer Overruns", IEEE Computer Society, 2004, pp. 8.
- "Dangling pointer: Smashing the pointer for fun and profit," retrieved on Mar. 7, 2008 at <<http://download.watchfire.com/whitepapers/Dangling-Pointer.pdf>>, 31 pages.
- "Dangling pointer: Smashing the pointer for fun and profit," retrieved on Mar. 7, 2008 at >, 31 pages.