Execution failure investigation using static analysis
Abstract
When, during debugging, a program failure occurs, the location of the failure is determined. First the address in the stack related to the program failure is found. Then static analysis is performed in order to determine a possible culprit for the failure. For example, when a security cookie has been overwritten, indicating a probable overflow, the location of the security cookie on the stack is determined, and proximate storage structures (such as arrays) which may have overflowed onto the location of the security cookie are determined. Then static analysis is used to determine probable sources (e.g. functions or instructions in a function) for this error. In this way, the root cause of a buffer overflow or similar problem can be identified easily, rather than requiring extensive time and knowledge regarding the working of the compiler, the security cookie, the stack, static analysis, and the source code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 24.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for debugging a software execution failure, said method comprising: retrieving a static memory address A Φ associated with a physical location in system memory where a security cookie is stored, said security cookie having been corrupted during a software execution failure; identifying an instruction that operated on said static memory address A Φ ; analyzing said instruction to determine a logical location ε on a call stack of said security cookie; identifying at least one data structure proximate to said logical location ε; and identifying at least one function that operates on at
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 24 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (5)
- Allen, F.E. et al., "A Program Data Flow Analysis Procedure", Communications of the ACM, 1976, 19(3), 137-147.
- Cowan et al., "Stack Guard: Automatic Adaptive Detection and Prevention of Buffer-Overflow Attacks", USENIX, 1998.
- Hood et al., "Paralell Program Debugging with On-the-fly Anomaly Detection", I EEE CH2916-5/90/0000/0074, 1990.
- Hood et al., "Paralell Program Debugging with On-the-fly Anomaly Detection", IEEE CH2916-5/90/0000/0074, 1990.
- Manevich et al., "PSE: Explaining Program Failures via Postmortem Static Analysis", ACM, 2004.