OLD | NEW |
---|---|
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 Loading... | |
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 static Exploitability *ExploitabilityForPlatform(Minidump *dump, | |
ivanpe
2015/08/20 21:17:51
Can you please, describe the parameters. More spe
liuandrew
2015/08/20 21:59:57
Done.
| |
57 ProcessState *process_state, | |
58 bool enable_objdump); | |
59 | |
56 ExploitabilityRating CheckExploitability(); | 60 ExploitabilityRating CheckExploitability(); |
57 bool AddressIsAscii(uint64_t); | 61 bool AddressIsAscii(uint64_t); |
58 | 62 |
59 protected: | 63 protected: |
60 Exploitability(Minidump *dump, | 64 Exploitability(Minidump *dump, |
61 ProcessState *process_state); | 65 ProcessState *process_state); |
62 | 66 |
63 Minidump *dump_; | 67 Minidump *dump_; |
64 ProcessState *process_state_; | 68 ProcessState *process_state_; |
65 SystemInfo *system_info_; | 69 SystemInfo *system_info_; |
66 | 70 |
67 private: | 71 private: |
68 virtual ExploitabilityRating CheckPlatformExploitability() = 0; | 72 virtual ExploitabilityRating CheckPlatformExploitability() = 0; |
69 }; | 73 }; |
70 | 74 |
71 } // namespace google_breakpad | 75 } // namespace google_breakpad |
72 | 76 |
73 #endif // GOOGLE_BREAKPAD_PROCESSOR_EXPLOITABILITY_H_ | 77 #endif // GOOGLE_BREAKPAD_PROCESSOR_EXPLOITABILITY_H_ |
OLD | NEW |