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

Unified Diff: chrome/browser/safe_browsing/module_integrity_verifier.h

Issue 434163002: Changes to module_integrity_verifier.cc that allow the function VerifyModule (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patchHunting2
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/module_integrity_verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/module_integrity_verifier.h
diff --git a/chrome/browser/safe_browsing/module_integrity_verifier.h b/chrome/browser/safe_browsing/module_integrity_verifier.h
index aa98f5a921ac9f3269994df339dca8321a9a916f..cc3483a7b50963ee90ef2922d9e77e9d7eadd7a7 100644
--- a/chrome/browser/safe_browsing/module_integrity_verifier.h
+++ b/chrome/browser/safe_browsing/module_integrity_verifier.h
@@ -7,6 +7,8 @@
#include <stdint.h>
+#include <set>
+
namespace base {
namespace win {
class PEImage;
@@ -32,12 +34,11 @@ bool GetCodeAddrsAndSize(const base::win::PEImage& mem_peimage,
uint8_t** disk_code_addr,
uint32_t* code_size);
-// Helper to count the number of bytes differing between two pointers.
-int CountBytesDiffInPtr(uintptr_t num_a, uintptr_t num_b);
-
// Examines the code section of the given module in memory and on disk, looking
-// for unexpected differences.
-ModuleState VerifyModule(const wchar_t* module_name);
+// for unexpected differences. Returns a ModuleState and and a set of the
+// possibly modified exports.
+ModuleState VerifyModule(const wchar_t* module_name,
+ std::set<std::string>* modified_exports);
} // namespace safe_browsing
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/module_integrity_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698