aboutsummaryrefslogtreecommitdiff
path: root/src/processor/exploitability_linux.h
diff options
context:
space:
mode:
authorLiu.andrew.x@gmail.com <Liu.andrew.x@gmail.com>2015-08-15 00:27:27 +0000
committerLiu.andrew.x@gmail.com <Liu.andrew.x@gmail.com>2015-08-15 00:27:27 +0000
commitab5ffb8b6cb5863f15153184e5ca33de2f47321d (patch)
tree637ad1bb58964189c69e6eb2cf07c94d419cf4ea /src/processor/exploitability_linux.h
parentFix format specifier in proc maps to support 32-bit architectures. (diff)
downloadbreakpad-ab5ffb8b6cb5863f15153184e5ca33de2f47321d.tar.xz
Add check to see if stack pointer is off the stack according to the memory
mappings when rating Linux exploitability. R=ivanpe@chromium.org Review URL: https://codereview.chromium.org/1286033002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1487 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/exploitability_linux.h')
-rw-r--r--src/processor/exploitability_linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/processor/exploitability_linux.h b/src/processor/exploitability_linux.h
index 6332b074..9d9fa695 100644
--- a/src/processor/exploitability_linux.h
+++ b/src/processor/exploitability_linux.h
@@ -58,6 +58,10 @@ class ExploitabilityLinux : public Exploitability {
// This method checks the exception that triggered the creation of the
// minidump and reports whether the exception suggests no exploitability.
bool BenignCrashTrigger(const MDRawExceptionStream *raw_exception_stream);
+
+ // Checks if the stack pointer points to a memory mapping that is not
+ // labelled as the stack.
+ bool StackPointerOffStack(uint64_t stack_ptr);
};
} // namespace google_breakpad