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

Side by Side Diff: src/processor/exploitability_linux.h

Issue 1210493003: Checking location of the instruction pointer to see if it is (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Checking location of the instruction pointer to see if it is Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2013 Google Inc. 1 // Copyright (c) 2013 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 30 matching lines...) Expand all
41 #include "google_breakpad/processor/exploitability.h" 41 #include "google_breakpad/processor/exploitability.h"
42 42
43 namespace google_breakpad { 43 namespace google_breakpad {
44 44
45 class ExploitabilityLinux : public Exploitability { 45 class ExploitabilityLinux : public Exploitability {
46 public: 46 public:
47 ExploitabilityLinux(Minidump *dump, 47 ExploitabilityLinux(Minidump *dump,
48 ProcessState *process_state); 48 ProcessState *process_state);
49 49
50 virtual ExploitabilityRating CheckPlatformExploitability(); 50 virtual ExploitabilityRating CheckPlatformExploitability();
51
52 private:
53 // checks if the instruction pointer lies in a valid instruction region
ivanpe 2015/06/25 20:58:39 Please, start sentences with capital letters and f
54 // this method takes the address of the instruction pointer and returns
55 // whether the address is a valid instruction region
56 bool InstructionPointerInCode(uint64_t instruction_ptr);
51 }; 57 };
52 58
53 } // namespace google_breakpad 59 } // namespace google_breakpad
54 60
55 #endif // GOOGLE_BREAKPAD_PROCESSOR_EXPLOITABILITY_LINUX_H_ 61 #endif // GOOGLE_BREAKPAD_PROCESSOR_EXPLOITABILITY_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | src/processor/exploitability_linux.cc » ('j') | src/processor/exploitability_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698