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

Unified Diff: syzygy/agent/common/hot_patcher.cc

Issue 2194383007: Port some more code to x64 (Closed) Base URL: git@github.com:google/syzygy.git@master
Patch Set: Rename the stack_walker unittest and fix the x86-64 implementation of stack_walker Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « syzygy/agent/common/common.gyp ('k') | syzygy/agent/common/stack_capture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/agent/common/hot_patcher.cc
diff --git a/syzygy/agent/common/hot_patcher.cc b/syzygy/agent/common/hot_patcher.cc
index 39cb5936fe43b2cbd908fdb982e9861460f31bc6..5b97835eba3ea31e89c4f45896dd431fa0cbe233 100644
--- a/syzygy/agent/common/hot_patcher.cc
+++ b/syzygy/agent/common/hot_patcher.cc
@@ -78,7 +78,7 @@ bool HotPatcher::Patch(FunctionPointer function_entry_point,
// Writes on x86 architecture are atomic within a cross 4-byte boundary.
// NOTE: This can be loosened. Any two bytes starting at an address that meets
// the (address % 4 != 3) condition does not cross 4-byte boundary.
- CHECK_EQ(0, reinterpret_cast<int>(jump_hook_place) % 2);
+ CHECK_EQ(0u, reinterpret_cast<uintptr_t>(jump_hook_place) % 2);
// We write the instruction JMP -5 which is represented as: 0xEB 0xF9
// We reverse the order of the bytes because of the little endian encoding
« no previous file with comments | « syzygy/agent/common/common.gyp ('k') | syzygy/agent/common/stack_capture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698