diff options
author | Liu.andrew.x@gmail.com <Liu.andrew.x@gmail.com> | 2015-08-15 00:37:14 +0000 |
---|---|---|
committer | Liu.andrew.x@gmail.com <Liu.andrew.x@gmail.com> | 2015-08-15 00:37:14 +0000 |
commit | e3687f92c22db45e8fd7d2b83884edcbb3685d6e (patch) | |
tree | e40d8a04dc49d508c58e0cce842454b7898118d3 /src/google_breakpad/processor | |
parent | Add check to see if stack pointer is off the stack according to the memory (diff) | |
download | breakpad-e3687f92c22db45e8fd7d2b83884edcbb3685d6e.tar.xz |
Add check for executable stack/heap when rating Linux exploitability.
This CL also consequentially adds a public method to get the number of
mappings in a Linux minidump.
R=ivanpe@chromium.org
Review URL: https://codereview.chromium.org/1291603002
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1488 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/google_breakpad/processor')
-rw-r--r-- | src/google_breakpad/processor/minidump.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/google_breakpad/processor/minidump.h b/src/google_breakpad/processor/minidump.h index ce1af851..2b5025e4 100644 --- a/src/google_breakpad/processor/minidump.h +++ b/src/google_breakpad/processor/minidump.h @@ -916,6 +916,9 @@ class MinidumpLinuxMapsList : public MinidumpStream { public: virtual ~MinidumpLinuxMapsList(); + // Get number of mappings. + unsigned int get_maps_count() const { return valid_ ? maps_count_ : 0; } + // Get mapping at the given memory address. The caller owns the pointer. const MinidumpLinuxMaps *GetLinuxMapsForAddress(uint64_t address) const; // Get mapping at the given index. The caller owns the pointer. |