From e3687f92c22db45e8fd7d2b83884edcbb3685d6e Mon Sep 17 00:00:00 2001 From: "Liu.andrew.x@gmail.com" Date: Sat, 15 Aug 2015 00:37:14 +0000 Subject: 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 --- src/google_breakpad/processor/minidump.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/google_breakpad/processor') 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. -- cgit v1.2.1