Secure pointers
Abstract
A method, apparatus, system, and signal-bearing medium that in an embodiment map a pointer to a target indirectly via a pointer map. In an embodiment, the pointer map is stored in a reserved area and an entry for the pointer in the pointer map includes a back-pointer containing an address of the pointer and a target-address containing the address of the target. When the pointer is accessed, the pointer is checked to ensure its contents point at the entry in the pointer map in the reserved area and that the back-pointer in the pointer map entry points back at the pointer. In this way, pointers are protected from being modified illegitimately.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 7.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method comprising: receiving an address of a storage location of a pointer from code that accesses the pointer; finding an entry in a pointer map based on the pointer, wherein the entry comprises an address of a storage location of a target of the pointer; determining whether the entry further comprises the address of the storage location of the pointer; and if the entry comprises the address of the storage location of the pointer, returning the address of the storage location of the target of the pointer to the code that accesses the pointer.
- Claim 2Depends on #1
The method of claim 1 , further comprising: verifying that the entry is located within a reserved address range.
- Claim 3Depends on #1
The method of claim 1 , further comprising: receiving the address of the storage location of the target; and storing the address of the storage location of the target in the entry.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗