Dynamically determining a buffer-stack overrun
Abstract
Example embodiments provide for effectively executing a stack-walk and other operations by dynamically accessing information about the expected location of cookies on a stack. For example, a first function is executed that causes a stack-walk operation to occur. While performing the stack-walk operation, cookie location information for a cookie placed on the stack by a second function different from the first function is accessed. The cookie, if uncorrupted, includes a known value that is used to determine if the stack has been corrupted. Based on the cookie location information, corrupt data representative of the cookie is accessed. A global cookie, which also includes the known value, is also accessed. The known value of the global cookie is then compared with the corrupt data to determine that the stack is corrupted at least up to the location of the corrupt data representative of the cookie.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 23.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computing system having a processor and memory which stores a stack that includes a data area for storing requests, functions, intermediate results, or other data awaiting processing, a method performed by the processor for effectively executing a stack-walk operation by dynamically accessing information about an expected location of a cookie placed on the stack by another operation and used in determining if a portion of the stack has been corrupted, the method comprising: calling a first function that executes a stack-walk operation for identifying protected data on a stack, the stack b
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 23 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (2)
- "/GS (Buffer Security Check)," Microsoft Corporation, available at http://msdn2.microsoft.com/en-us/library/8dbf701c(vs.80).aspx (copy of PDF enclosed entitled "Article 2," 2 pages).
- Robert Horvick, "Stack Buffer Overrun Example," Robert Horvick's Weblog, Jan. 16, 2004, available at http://blogs.msdn.com/roberthorvick/archive/2004/01/16/59460.aspx (copy of PDF enclosed entitled "Article 1." 4 pages).