Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/google_breakpad/processor/exploitability.h

Issue 1273823004: Add check for Linux minidump ending on bad write for exploitability rating. (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/google_breakpad/processor/minidump_processor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 Google Inc. 1 // Copyright (c) 2010 Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 namespace google_breakpad { 47 namespace google_breakpad {
48 48
49 class Exploitability { 49 class Exploitability {
50 public: 50 public:
51 virtual ~Exploitability() {} 51 virtual ~Exploitability() {}
52 52
53 static Exploitability *ExploitabilityForPlatform(Minidump *dump, 53 static Exploitability *ExploitabilityForPlatform(Minidump *dump,
54 ProcessState *process_state); 54 ProcessState *process_state);
55 55
56 // The boolean parameter signals whether the exploitability engine is
57 // enabled to call out to objdump for disassembly. This is disabled by
58 // default. It is used to check the identity of the instruction that
59 // caused the program to crash. This should not be enabled if there are
60 // portability concerns.
61 static Exploitability *ExploitabilityForPlatform(Minidump *dump,
62 ProcessState *process_state,
63 bool enable_objdump);
64
56 ExploitabilityRating CheckExploitability(); 65 ExploitabilityRating CheckExploitability();
57 bool AddressIsAscii(uint64_t); 66 bool AddressIsAscii(uint64_t);
58 67
59 protected: 68 protected:
60 Exploitability(Minidump *dump, 69 Exploitability(Minidump *dump,
61 ProcessState *process_state); 70 ProcessState *process_state);
62 71
63 Minidump *dump_; 72 Minidump *dump_;
64 ProcessState *process_state_; 73 ProcessState *process_state_;
65 SystemInfo *system_info_; 74 SystemInfo *system_info_;
66 75
67 private: 76 private:
68 virtual ExploitabilityRating CheckPlatformExploitability() = 0; 77 virtual ExploitabilityRating CheckPlatformExploitability() = 0;
69 }; 78 };
70 79
71 } // namespace google_breakpad 80 } // namespace google_breakpad
72 81
73 #endif // GOOGLE_BREAKPAD_PROCESSOR_EXPLOITABILITY_H_ 82 #endif // GOOGLE_BREAKPAD_PROCESSOR_EXPLOITABILITY_H_
OLDNEW
« no previous file with comments | « no previous file | src/google_breakpad/processor/minidump_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698